Skip to content

Commit fd01554

Browse files
authored
Merge pull request #2614 from hey-api/ci/matrix
ci: update workflows to use node 24
2 parents 9b8efe7 + e7f6c44 commit fd01554

File tree

8 files changed

+258
-30
lines changed

8 files changed

+258
-30
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [macos-latest, ubuntu-latest, windows-latest]
21-
node-version: ['20.19.0', '22.12.0']
21+
node-version: ['20.19.0', '22.12.0', '24.7.0']
2222
steps:
2323
- uses: actions/[email protected]
2424
with:
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/setup-node@v4
3030
with:
3131
node-version: ${{ matrix.node-version }}
32-
# cache: 'pnpm'
32+
cache: 'pnpm'
3333

3434
- name: Install dependencies
3535
run: pnpm install
@@ -38,7 +38,7 @@ jobs:
3838
run: pnpm build --filter="@hey-api/**"
3939

4040
- name: Build examples
41-
if: matrix.node-version == '22.12.0' && matrix.os == 'ubuntu-latest'
41+
if: matrix.node-version == '24.7.0' && matrix.os == 'ubuntu-latest'
4242
run: pnpm build --filter="@examples/**"
4343

4444
- name: Run linter
@@ -51,7 +51,7 @@ jobs:
5151
run: pnpm test
5252

5353
- name: Publish preview packages
54-
if: github.event_name == 'pull_request' && matrix.node-version == '22.12.0' && matrix.os == 'ubuntu-latest'
54+
if: github.event_name == 'pull_request' && matrix.node-version == '24.7.0' && matrix.os == 'ubuntu-latest'
5555
run: ./scripts/publish-preview-packages.sh
5656
env:
5757
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

.github/workflows/codeql.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ concurrency:
1515
jobs:
1616
analyze:
1717
name: Analyze
18-
runs-on: ubuntu-latest
19-
permissions:
20-
actions: read
21-
contents: read
22-
security-events: write
18+
runs-on: ${{ matrix.os }}
2319
strategy:
2420
fail-fast: false
2521
matrix:
2622
language: [javascript]
23+
os: [ubuntu-latest]
24+
permissions:
25+
actions: read
26+
contents: read
27+
security-events: write
2728

2829
steps:
2930
- uses: actions/[email protected]

.github/workflows/contributors.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ on:
77

88
jobs:
99
update:
10-
runs-on: ubuntu-latest
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest]
1114
steps:
1215
- uses: actions/[email protected]
1316

.github/workflows/coverage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ concurrency:
1717
jobs:
1818
upload:
1919
name: Upload
20-
runs-on: ubuntu-latest
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
matrix:
23+
os: [ubuntu-latest]
24+
node-version: ['24.7.0']
2125
steps:
2226
- uses: actions/[email protected]
2327

2428
- uses: pnpm/[email protected]
2529

2630
- uses: actions/setup-node@v4
2731
with:
28-
node-version: 20.x
32+
node-version: ${{ matrix.node-version }}
2933
cache: 'pnpm'
3034

3135
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1717
jobs:
1818
release:
1919
name: Release
20-
runs-on: ubuntu-latest
20+
runs-on: ${{ matrix.os }}
21+
strategy:
22+
matrix:
23+
os: [ubuntu-latest]
24+
node-version: ['24.7.0']
2125
steps:
2226
- uses: actions/[email protected]
2327

2428
- uses: pnpm/[email protected]
2529

2630
- uses: actions/setup-node@v4
2731
with:
28-
node-version: 20.x
32+
node-version: ${{ matrix.node-version }}
2933
cache: 'pnpm'
3034

3135
- name: Install Dependencies

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.12.0
1+
24.7.0

packages/openapi-ts/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
"color-support": "1.1.3",
9696
"commander": "13.0.0",
9797
"handlebars": "4.7.8",
98-
"js-yaml": "4.1.0",
9998
"open": "10.1.2",
10099
"semver": "7.7.2"
101100
},
@@ -114,7 +113,6 @@
114113
"@types/bun": "1.2.19",
115114
"@types/cross-spawn": "6.0.6",
116115
"@types/express": "4.17.21",
117-
"@types/js-yaml": "4.0.9",
118116
"@types/semver": "7.7.0",
119117
"axios": "1.8.2",
120118
"cross-spawn": "7.0.5",

0 commit comments

Comments
 (0)