Skip to content

Commit

Permalink
CI: Use npm ci where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstraka2 committed Mar 28, 2020
1 parent 7aadffe commit 8d9808a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

- name: Install eslint
run: npm install eslint
# npm ci can only install entire projects at a time:
# individual dependencies cannot be added with this command

- name: Lint
run: npm run lint:this
Expand All @@ -48,8 +50,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install eslint and lint examples
run: npm run lint:examples
- name: Install
run: cd examples && npm ci

- name: Lint examples
run: cd examples && npm run lint

test:
name: Test
Expand All @@ -71,7 +76,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install
run: npm install
run: npm ci

- name: Test
run: npm test

0 comments on commit 8d9808a

Please sign in to comment.