Skip to content

Commit 859504b

Browse files
committed
lock playground dependencies and enable setup-node's cache feature
instead of using actions/cache by ourselves
1 parent e7a4115 commit 859504b

File tree

4 files changed

+4839
-6
lines changed

4 files changed

+4839
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,8 @@ jobs:
7272
- uses: actions/setup-node@v5
7373
with:
7474
node-version: "lts/*"
75-
- name: Cache node_modules
76-
uses: actions/cache@v4
77-
with:
78-
path: ./playground/node_modules
79-
key: ${{ hashFiles('./playground/package.json') }}
75+
cache: npm
76+
cache-dependency-path: ./playground/package-lock.json
8077
- name: Build playground
8178
run: make build
8279
- name: Lint playground

.github/workflows/matcher.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- uses: actions/setup-node@v5
2424
with:
2525
node-version: "lts/*"
26+
cache: npm
27+
cache-dependency-path: ./playground/package-lock.json
2628
- name: Update test data
2729
run: make ./scripts/generate-actionlint-matcher/test/* SKIP_GO_GENERATE=true
2830
- name: Test actionlint-matcher.json

playground/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/lib
22
/main.wasm
33
/node_modules
4-
/package-lock.json
54
/image
65
/*.js
76
/*.js.map

0 commit comments

Comments
 (0)