@@ -16,33 +16,20 @@ jobs:
1616 build :
1717 name : Check and build codebase
1818 runs-on : ubuntu-latest
19- strategy :
20- matrix :
21- node-version : [16.x, 18.x]
2219 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
3021
31- - uses : pnpm/action-setup@v2.2.2
22+ - uses : pnpm/action-setup@v3
3223 with :
3324 version : 7
3425
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
4127 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
4633
4734 - name : Install dependencies
4835 run : pnpm install
@@ -52,13 +39,13 @@ jobs:
5239 # - name: Clear all caches
5340 # run: pnpm clean:cache
5441
55- - name : Build Code and Examples ${{ matrix.node-version }}
42+ - name : Build Code and Examples
5643 run : pnpm run build
5744
5845 # We build in-source files like `examples/one-page/index.html`.
5946 # This check ensures we don't build changes that need committing.
6047 - name : Check generated in-source files
6148 run : git diff --no-ext-diff --quiet --exit-code
6249
63- - name : Check Code ${{ matrix.node-version }}
50+ - name : Check Code
6451 run : pnpm run check:ci
0 commit comments