We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476f128 commit 1b006eeCopy full SHA for 1b006ee
.github/workflows/run-tests.yml
@@ -4,17 +4,19 @@ on:
4
pull_request:
5
workflow_dispatch:
6
jobs:
7
- checkout:
+ test:
8
runs-on: ubuntu-latest
9
- environment: dev
10
steps:
11
- name: Get code
12
uses: actions/checkout@v4
13
- - name: Install dependencies
+ - name: Cache dependencies
+ id: cache
14
+ uses: actions/cache@v4
15
+ with:
16
+ path: node_modules
17
+ key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
18
+ - name: Install dependencies
19
+ if: steps.cache.outputs.cache-hit != 'true'
20
run: npm ci
- test:
- runs-on: ubuntu-latest
- needs: checkout
- steps:
21
- name: Run tests
22
run: npm run test
0 commit comments