From 6ed863e674b0e34c8b4e2aa98e525cf2da889cca Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Fri, 26 Jun 2026 19:27:30 +0800 Subject: [PATCH] ci: refresh app workflows for node 24 --- .github/workflows/build-and-release.yml | 22 +++++++++++----------- .github/workflows/pr-tests.yml | 16 +--------------- .github/workflows/release-e2e.yml | 4 ++-- 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index becb6f17..2d266e90 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -54,7 +54,7 @@ jobs: release_notes: ${{ steps.meta.outputs.release_notes }} steps: - name: Checkout source - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 with: fetch-depth: 0 @@ -77,7 +77,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout source - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Set up Flutter SDK uses: ./.github/actions/setup-flutter-sdk @@ -146,12 +146,12 @@ jobs: SHOULD_RELEASE: ${{ needs.prepare.outputs.should_release }} steps: - name: Checkout source - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Load Vault secrets id: vault if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - uses: hashicorp/vault-action@v2 + uses: hashicorp/vault-action@v4 with: url: ${{ env.VAULT_ADDR }} method: jwt @@ -198,7 +198,7 @@ jobs: - name: Set up Java 17 for Android if: ${{ matrix.platform == 'android' }} - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 + uses: actions/setup-java@v5 with: distribution: temurin java-version: "17" @@ -215,7 +215,7 @@ jobs: - name: Install Go if: ${{ matrix.platform == 'macos' && steps.preflight.outputs.should_build_platform == 'true' }} - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff + uses: actions/setup-go@v6 with: go-version: "1.24.1" @@ -226,7 +226,7 @@ jobs: - name: Upload build artifacts if: ${{ steps.preflight.outputs.should_build_platform == 'true' }} - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + uses: actions/upload-artifact@v7 with: name: ${{ matrix.artifact_name }} path: ${{ matrix.artifact_paths }} @@ -243,12 +243,12 @@ jobs: if: ${{ github.event_name != 'push' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} steps: - name: Checkout source - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Load Vault secrets id: vault if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - uses: hashicorp/vault-action@v2 + uses: hashicorp/vault-action@v4 with: url: ${{ env.VAULT_ADDR }} method: jwt @@ -282,10 +282,10 @@ jobs: - remote_contract steps: - name: Checkout source - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Download all artifacts - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + uses: actions/download-artifact@v8 with: path: release-artifacts diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 25f2a120..358afe92 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Setup Flutter uses: ./.github/actions/setup-flutter-sdk @@ -32,17 +32,3 @@ jobs: - name: Run Flutter PR layered tests run: bash ./scripts/ci/run_layered_tests.sh pr - - go-unit: - runs-on: ubuntu-22.04 - steps: - - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 - - - name: Setup Go - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff - with: - go-version: '1.25.0' - - - name: Run Go unit tests - run: cd go/go_core && go test ./... diff --git a/.github/workflows/release-e2e.yml b/.github/workflows/release-e2e.yml index 3abfca5b..8cedc9bb 100644 --- a/.github/workflows/release-e2e.yml +++ b/.github/workflows/release-e2e.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Setup Flutter uses: ./.github/actions/setup-flutter-sdk @@ -34,7 +34,7 @@ jobs: continue-on-error: true steps: - name: Checkout - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 + uses: actions/checkout@v7 - name: Setup Flutter uses: ./.github/actions/setup-flutter-sdk