From d8e65d29ce300dbb81a2a5dc29a080d65cc6df61 Mon Sep 17 00:00:00 2001 From: luo jiyin Date: Tue, 29 Sep 2026 02:13:41 +0800 Subject: [PATCH] ci: drop redundant node setup in aggregate gates --- .github/scripts/ci-workflow.test.mjs | 2 ++ .github/workflows/ci.yml | 16 ---------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/scripts/ci-workflow.test.mjs b/.github/scripts/ci-workflow.test.mjs index a2b53f030e..81acf84e38 100644 --- a/.github/scripts/ci-workflow.test.mjs +++ b/.github/scripts/ci-workflow.test.mjs @@ -47,6 +47,8 @@ test("stable Rust, Agent and overall gates always inspect selected upstream resu assert.match(content, /if: always\(\)/); assert.ok(content.includes(`node .github/scripts/ci-gate.mjs ${mode}`)); assert.ok(content.includes("${{ toJSON(needs) }}")); + assert.ok(content.includes("uses: actions/checkout@v7")); + assert.doesNotMatch(content, /actions\/setup-node|name: Setup Node\.js/); for (const dependency of dependencies) assert.match(content, new RegExp(`^ - ${dependency}$`, "m")); } }); diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c313c8da5..c8aab6c7db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,10 +136,6 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: 22.13.0 - name: Check selected frontend jobs env: NEEDS_JSON: ${{ toJSON(needs) }} @@ -940,10 +936,6 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: 22.13.0 - name: Check selected rust jobs env: NEEDS_JSON: ${{ toJSON(needs) }} @@ -1205,10 +1197,6 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: 22.13.0 - name: Check selected agents jobs env: NEEDS_JSON: ${{ toJSON(needs) }} @@ -1488,10 +1476,6 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: 22.13.0 - name: Check selected all jobs env: NEEDS_JSON: ${{ toJSON(needs) }}