diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ad2095..d025959 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 cache: npm @@ -32,18 +32,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out plugin - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: path: plugin - name: Check out OpenClaw host - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: openclaw/openclaw path: openclaw - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 cache: npm diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f89a8f5..aecf235 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,7 +25,7 @@ jobs: environment: npm steps: - name: Check out repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Resolve release tag id: release @@ -34,7 +34,7 @@ jobs: echo "tag=${tag}" >> "$GITHUB_OUTPUT" - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version: 22 registry-url: https://registry.npmjs.org diff --git a/test/ci-workflow.test.ts b/test/ci-workflow.test.ts index 53aab69..033a5a9 100644 --- a/test/ci-workflow.test.ts +++ b/test/ci-workflow.test.ts @@ -9,4 +9,11 @@ describe("CI workflow", () => { expect(workflow).toContain("repository: openclaw/openclaw"); expect(workflow).toContain("npm run smoke:openclaw-host"); }); + + it("uses Node 24-compatible GitHub Actions", () => { + expect(workflow).toContain("actions/checkout@v6"); + expect(workflow).toContain("actions/setup-node@v6"); + expect(workflow).not.toContain("actions/checkout@v4"); + expect(workflow).not.toContain("actions/setup-node@v4"); + }); }); diff --git a/test/npm-publish-workflow.test.ts b/test/npm-publish-workflow.test.ts index 7f1ebc1..18e136d 100644 --- a/test/npm-publish-workflow.test.ts +++ b/test/npm-publish-workflow.test.ts @@ -18,6 +18,10 @@ describe("npm publish workflow", () => { expect(workflow).toContain("npm view \"${PACKAGE_NAME}@${PACKAGE_VERSION}\" version"); expect(workflow).toContain("if: steps.package-state.outputs.already_published != 'true'"); expect(workflow).toContain("npm publish --provenance --access public"); + expect(workflow).toContain("actions/checkout@v6"); + expect(workflow).toContain("actions/setup-node@v6"); + expect(workflow).not.toContain("actions/checkout@v4"); + expect(workflow).not.toContain("actions/setup-node@v4"); expect(workflow).not.toContain("NODE_AUTH_TOKEN"); expect(workflow).not.toContain("NPM_TOKEN"); });