Skip to content

Commit

Permalink
Simplify ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Aug 19, 2023
1 parent 4421d60 commit b31f762
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Cache node_modules
id: cache-node_modules
- id: cache-node_modules
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }}

- name: npm ci
if: steps.cache-node_modules.outputs.cache-hit != 'true'
- if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci

- name: test
run: npm test
- run: npm test

0 comments on commit b31f762

Please sign in to comment.