YAMLIntermediate

CI/CD Pipeline Matrix Upgrade

Ctrl+kPrevNextCtrl+j
.github/workflows/deploy.yml
0.0s/ 30s0/ 32
1
name: Production Deploy
2
on:
3
push:
4
branches: [main]
5
6
jobs:
7
build-and-test:
8
# TODO: remove legacy runner pin after upgrade
9
runs-on: ubuntu-20.04
10
steps:
11
- name: Checkout repository
12
uses: actions/checkout@v4
13
- name: Setup Node.js
14
uses: actions/setup-node@v4
15
with:
16
node-version: "18"
17
cache: "npm"
18
- name: Install dependencies
19
run: pnpm install --frozen-lockfile
20
- name: Run test suite
21
run: pnpm test
-L8 # TODO: remove legacy runner pin after upgrade
-L9 runs-on: ubuntu-20.04
+L8 runs-on: ubuntu-latest
-L16 node-version: "18"
-L17 cache: "npm"
+L15 node-version: "22"
+L16 cache: "pnpm"