Skip to content

Commit 668aa7a

Browse files
author
Eyal Rozen
committed
ci: add matrix strategy
1 parent 9e1ae39 commit 668aa7a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/pull_request.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on: [pull_request]
44

55
jobs:
66
eslint:
7-
name: Run eslint
7+
name: Run eslint (Node ${{ matrix.node-version }})
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version: [24.x]
912

1013
steps:
1114
- name: Check out Git repository
@@ -14,7 +17,7 @@ jobs:
1417
- name: Set up Node.js
1518
uses: actions/setup-node@v4
1619
with:
17-
node-version: 24
20+
node-version: ${{ matrix.node-version }}
1821
cache: 'npm'
1922

2023
- name: Install dependencies
@@ -35,9 +38,14 @@ jobs:
3538
file: ./openapi3.yaml
3639

3740
tests:
38-
name: Run Tests
41+
name: Run Tests (Node ${{ matrix.node-version }})
3942
runs-on: ubuntu-latest
40-
container: node:24
43+
strategy:
44+
matrix:
45+
node-version: [24.x]
46+
47+
container:
48+
image: node:${{ matrix.node-version }}
4149

4250
services:
4351
redis:
@@ -62,16 +70,16 @@ jobs:
6270
REDIS_HOST: redis
6371
REDIS_PORT: 6379
6472

65-
- uses: actions/upload-artifact@v5
73+
- name: Upload Artifacts
74+
uses: actions/upload-artifact@v5
6675
if: always()
6776
with:
68-
name: Test Reporters - Node v${{ matrix.node }}
77+
name: Test Reporters - Node v${{ matrix.node-version }}
6978
path: reports/**
7079

7180
build_image:
7281
name: Build Image
7382
runs-on: ubuntu-latest
74-
7583
steps:
7684
- name: Check out Git repository
7785
uses: actions/checkout@v4

0 commit comments

Comments
 (0)