Skip to content

Commit cfcb751

Browse files
Copilotmikeharder
andauthored
Upgrade GitHub Actions and nodejs to latest versions (#820)
* Initial plan * Upgrade all GitHub Actions to latest versions in github-test.yaml Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Upgrade GitHub Actions to latest versions in staging-lint-checks.yaml and test.yaml Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> * Update test.yaml matrix to match github-test.yaml pattern Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> Co-authored-by: Mike Harder <mharder@microsoft.com>
1 parent 077b4ba commit cfcb751

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/github-test.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3434
with:
3535
sparse-checkout: |
3636
.github
@@ -42,21 +42,21 @@ jobs:
4242

4343
- if: ${{ matrix.os == 'ubuntu'}}
4444
name: Lint workflows
45-
uses: docker://rhysd/actionlint:1.7.8
45+
uses: docker://rhysd/actionlint:1.7.10
4646
with:
4747
args: -color -verbose
4848

4949
- name: Setup Node.js
50-
uses: actions/setup-node@v4
50+
uses: actions/setup-node@v6
5151
with:
52-
# actions/github-script@v7 uses Node 20
53-
node-version: 20.x
52+
# actions/github-script@v8 uses Node 24
53+
node-version: 24.x
5454

5555
- name: Install runtime deps
5656
run: npm ci --omit dev
5757

5858
- name: Verify all modules are importable
59-
uses: actions/github-script@v7
59+
uses: actions/github-script@v8
6060
with:
6161
script: |
6262
const { join } = await import("path");
@@ -75,7 +75,7 @@ jobs:
7575
- run: npm run test:ci
7676

7777
- name: Archive code coverage results
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@v6
7979
with:
8080
name: code-coverage-report-${{ matrix.os }}
8181
path: ./.github/coverage

.github/workflows/staging-lint-checks.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ jobs:
2828
runs-on: ubuntu-24.04
2929
steps:
3030
- name: Checkout validator repository
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232

3333
- name: Setup Node.js
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@v6
3535
with:
36-
node-version: 22
36+
node-version: 24
3737

3838
- name: Checkout specs repository (sparse - only needed RPs)
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v6
4040
with:
4141
repository: ${{ env.SPEC_REPO }}
4242
path: ${{ env.SPEC_CHECKOUT_PATH }}
@@ -62,15 +62,15 @@ jobs:
6262
working-directory: .github
6363

6464
- name: Extract rules and run AutoRest validation
65-
uses: actions/github-script@v7
65+
uses: actions/github-script@v8
6666
with:
6767
script: |
6868
const { runInGitHubActions } = await import('${{ github.workspace }}/.github/workflows/src/extract-rule-names-and-run-validation.js');
6969
await runInGitHubActions({ context, core });
7070
7171
- name: Upload findings artifact
7272
if: always()
73-
uses: actions/upload-artifact@v4
73+
uses: actions/upload-artifact@v6
7474
with:
7575
name: linter-findings
7676
path: artifacts/linter-findings.txt

.github/workflows/test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, windows-latest]
14-
node-version: [20, 22]
13+
os: [ubuntu, windows]
14+
node-version: [20, 24]
1515
exclude:
16-
- os: ubuntu-latest
17-
node-version: 22
18-
- os: windows-latest
16+
- os: ubuntu
17+
node-version: 24
18+
- os: windows
1919
node-version: 20
2020

21-
runs-on: ${{ matrix.os }}
21+
runs-on: ${{ fromJSON('{"ubuntu":"ubuntu-24.04", "windows":"windows-2022"}')[matrix.os] }}
2222

2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v6
2525

2626
- name: Use Node ${{ matrix.node-version }}.x
27-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v6
2828
with:
2929
node-version: ${{ matrix.node-version }}.x
3030

0 commit comments

Comments
 (0)