mirror of
https://github.com/gianfrancopiana/openclaw-autoresearch.git
synced 2026-08-14 00:48:06 +00:00
Update GitHub Actions to v6
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user