Skip to content

Commit dbc4237

Browse files
committed
Merge branch 'main' into feat/analytics-endpoint
2 parents 199532e + 6212858 commit dbc4237

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pull_request.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,24 @@ on:
1212
- main
1313
jobs:
1414
build-and-test:
15+
strategy:
16+
matrix:
17+
node-version: [18.x, 20.x, 22.x]
1518
runs-on: ubuntu-latest
1619
steps:
1720
- uses: actions/checkout@v4
1821
with:
1922
submodules: true
2023
- uses: actions/setup-node@v4
2124
with:
22-
node-version: "18.x"
25+
node-version: "${{ matrix.node-version }}"
2326
- name: cache node modules
2427
uses: actions/cache@v4
2528
with:
2629
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
27-
key: npm-${{ hashFiles('package-lock.json') }}
30+
key: npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
2831
restore-keys: |
29-
npm-${{ hashFiles('package-lock.json') }}
32+
npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
3033
npm-
3134
- run: npm ci
3235
- run: npm test

0 commit comments

Comments
 (0)