@@ -16,33 +16,20 @@ jobs:
16
16
build :
17
17
name : Check and build codebase
18
18
runs-on : ubuntu-latest
19
- strategy :
20
- matrix :
21
- node-version : [16.x, 18.x]
22
19
steps :
23
- - uses : actions/checkout@v2
24
- - uses : actions/setup-node@v2
25
- with :
26
- node-version : ${{ matrix.node-version }}
27
-
28
- # Wireit cache
29
- - uses : google/wireit@setup-github-actions-caching/v1
20
+ - uses : actions/checkout@v4
30
21
31
- - uses : pnpm/action-setup@v2.2.2
22
+ - uses : pnpm/action-setup@v3
32
23
with :
33
24
version : 7
34
25
35
- - name : Get pnpm store directory
36
- id : pnpm-cache
37
- run : echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
38
-
39
- - name : Setup pnpm cache
40
- uses : actions/cache@v3
26
+ - uses : actions/setup-node@v4
41
27
with :
42
- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
43
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
44
- restore-keys : |
45
- ${{ runner.os }}-pnpm-store-
28
+ cache : ' pnpm'
29
+ node-version : 18.x
30
+
31
+ # Wireit cache
32
+ - uses : google/wireit@setup-github-actions-caching/v1
46
33
47
34
- name : Install dependencies
48
35
run : pnpm install
@@ -52,13 +39,13 @@ jobs:
52
39
# - name: Clear all caches
53
40
# run: pnpm clean:cache
54
41
55
- - name : Build Code and Examples ${{ matrix.node-version }}
42
+ - name : Build Code and Examples
56
43
run : pnpm run build
57
44
58
45
# We build in-source files like `examples/one-page/index.html`.
59
46
# This check ensures we don't build changes that need committing.
60
47
- name : Check generated in-source files
61
48
run : git diff --no-ext-diff --quiet --exit-code
62
49
63
- - name : Check Code ${{ matrix.node-version }}
50
+ - name : Check Code
64
51
run : pnpm run check:ci
0 commit comments