Skip to content

Commit 5fb5964

Browse files
committed
Setting up caching for the GH Action
1 parent 7f3cafc commit 5fb5964

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: ["master", "develop"]
5+
branches: [ "master", "develop" ]
66
pull_request:
7-
branches: ["main", "master", "develop"]
7+
branches: [ "main", "master", "develop" ]
88
workflow_dispatch:
99

1010
jobs:
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
node-version: "20"
1919
cache: "npm"
20+
21+
# Set up GitHub Actions caching for Wireit.
22+
- uses: google/wireit@setup-github-actions-caching/v2
23+
2024
- run: npm ci
2125
- run: npm run build --if-present
2226
- run: npm test

0 commit comments

Comments
 (0)