From ae86622fdcc0fc78e38d5c8ffc1296b263f5a1f7 Mon Sep 17 00:00:00 2001 From: hatz Date: Mon, 9 Sep 2024 10:46:35 -0500 Subject: [PATCH] Migrate to shared-actions `v2` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!IMPORTANT] > **Please thoroughly review this PR before approving and merging** > This migration is complicated and may require some manual changes. Below we will call out breaking changes and other important notes. This PR moves all workflows to the new shared-actions v2. Please check out the following docs for more information on this migration: - [Migration Guide](https://docs.devops.figure.com/shared-actions/v2-migration-guide) - [Migration Changes](https://docs.devops.figure.com/shared-actions/v2-migration-changes) Please reach out to [#github-actions-help](https://figure-group.slack.com/archives/C044W9BRAVD) with any and all questions, someone from devops or core tech will be able to help. --- ### Notes - Once you've merged in this PR and are running `v2` actions it is worth watching your workflows for warnings about inputs that are no longer used. We are able to handle a lot of replacements automatically, but we err on the side of caution to avoid breaking other github actions that we don't own. These warnings won't ever break your builds, but it is good practice to keep them clean. 🤖🪄 This PR was automatically created by a magic script. --- .github/workflows/rust.yaml | 6 +++--- .github/workflows/test.yaml | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index edaa06d..b8ddbf6 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: toolchain uses: actions-rs/toolchain@v1 with: @@ -45,7 +45,7 @@ jobs: fail_ci_if_error: false verbose: true - name: archive code coverage results - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: code-coverage-report path: cobertura.xml @@ -55,7 +55,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/v') steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: optimize run: make optimize - name : release diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1e07b2a..6fa5a22 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,7 +23,7 @@ jobs: name: Test ATS Smart Contract steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Add wasm32 target run: | rustup target add wasm32-unknown-unknown @@ -33,7 +33,6 @@ jobs: - name: Run ATS Test uses: provenance-io/provenance-testing-action@v1.1.2 with: - github_token: ${{ secrets.GITHUB_TOKEN }} provenance_version: "v1.14.1" test_script: "./scripts/test_ats.sh" - wasm_path: "./artifacts/ats_smart_contract.wasm" \ No newline at end of file + wasm_path: "./artifacts/ats_smart_contract.wasm"