Skip to content

Commit 1b006ee

Browse files
fix tests workflow
1 parent 476f128 commit 1b006ee

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ on:
44
pull_request:
55
workflow_dispatch:
66
jobs:
7-
checkout:
7+
test:
88
runs-on: ubuntu-latest
9-
environment: dev
109
steps:
1110
- name: Get code
1211
uses: actions/checkout@v4
13-
- name: Install dependencies
12+
- name: Cache dependencies
13+
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'
1420
run: npm ci
15-
test:
16-
runs-on: ubuntu-latest
17-
needs: checkout
18-
steps:
1921
- name: Run tests
2022
run: npm run test

0 commit comments

Comments
 (0)