Skip to content

Commit

Permalink
Merge pull request #6 from byu-oit/v1
Browse files Browse the repository at this point in the history
V1.0.1
  • Loading branch information
yoshutch authored Jul 1, 2020
2 parents 45d0737 + 573d5fa commit 8e3565c
Showing 1 changed file with 64 additions and 3 deletions.
67 changes: 64 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,73 @@ on:
branches:
- master
- 'v*'
env:
node_version: "12.x"

jobs:
build: # make sure build/ci work properly
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: |
yarn install
yarn run all
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}

- name: yarn install
run: yarn install

- name: yarn build
run: yarn build

- name: yarn run pack
run: yarn run pack

audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}

- name: yarn audit
run: yarn audit --level critical [[ $? -ge 16 ]] && exit 1 || exit 0 # this last part is needed because yarn audit returns a non-0 code if any vulnerabilities are found

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}

- name: yarn install
run: yarn install

- name: yarn lint
run: yarn lint

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}

- name: yarn install
run: yarn install

- name: yarn test
run: yarn test

0 comments on commit 8e3565c

Please sign in to comment.