ci: 升级GitHub Actions中checkout、setup-go与setup-node及upload-artifact至Node.js 24适配主版本
Some checks are pending
Security Checks / security (push) Waiting to run

This commit is contained in:
smail 2026-10-18 12:58:30 +08:00
parent 633301db81
commit 6d1bdb7a10
2 changed files with 10 additions and 10 deletions

View File

@ -27,15 +27,15 @@ jobs:
echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "${GITHUB_REF}" echo "${GITHUB_REF}"
- name: Checkout - name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 uses: actions/checkout@v6
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 uses: actions/setup-node@v6
with: with:
node-version: 24 node-version: 24
- name: Install Dependencies - name: Install Dependencies
run: npm install --global yarn@1.22.22 run: npm install --global yarn@1.22.22
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff uses: actions/setup-go@v6
with: with:
go-version: '1.26.6' go-version: '1.26.6'
cache-dependency-path: backend/go.sum cache-dependency-path: backend/go.sum
@ -70,7 +70,7 @@ jobs:
run: | run: |
SMAIL_VERSION="${{ env.VERSION }}" GIT_HASH="$(git show -s --format=%H)" node deploy/package.mjs ${{ matrix.goos }}_${{ matrix.goarch }} SMAIL_VERSION="${{ env.VERSION }}" GIT_HASH="$(git show -s --format=%H)" node deploy/package.mjs ${{ matrix.goos }}_${{ matrix.goarch }}
- name: Upload files to Artifacts - name: Upload files to Artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 uses: actions/upload-artifact@v6
with: with:
name: ${{ env.PACKAGENAME }} name: ${{ env.PACKAGENAME }}
path: out/release/${{ env.ARCHIVENAME }} path: out/release/${{ env.ARCHIVENAME }}
@ -88,14 +88,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 uses: actions/checkout@v6
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff uses: actions/setup-go@v6
with: with:
go-version: '1.26.6' go-version: '1.26.6'
cache-dependency-path: backend/go.sum cache-dependency-path: backend/go.sum
- name: Setup Node.js for test runner - name: Setup Node.js for test runner
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 uses: actions/setup-node@v6
with: with:
node-version: 24 node-version: 24
- name: Prepare frontend and Go embedded assets - name: Prepare frontend and Go embedded assets

View File

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 uses: actions/checkout@v6
- name: Reject committed cloud credentials and private keys - name: Reject committed cloud credentials and private keys
run: python3 test/tools/check_tracked_secrets.py run: python3 test/tools/check_tracked_secrets.py
- name: Verify isolated acceptance and secret scanner regressions - name: Verify isolated acceptance and secret scanner regressions
@ -22,12 +22,12 @@ jobs:
python3 -m unittest discover -s test/deployment -p 'test_runtime_*.py' python3 -m unittest discover -s test/deployment -p 'test_runtime_*.py'
python3 -m unittest discover -s test/deployment -p 'test_tracked_secrets.py' python3 -m unittest discover -s test/deployment -p 'test_tracked_secrets.py'
- name: Setup Go environment - name: Setup Go environment
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff uses: actions/setup-go@v6
with: with:
go-version: '1.26.6' go-version: '1.26.6'
cache-dependency-path: backend/go.sum cache-dependency-path: backend/go.sum
- name: Setup Node.js for test runner - name: Setup Node.js for test runner
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 uses: actions/setup-node@v6
with: with:
node-version: 24 node-version: 24
- name: Prepare frontend and Go embedded assets - name: Prepare frontend and Go embedded assets