From 1b9e281379f720051a1c960f58cd873b98441152 Mon Sep 17 00:00:00 2001 From: Michalina Date: Wed, 21 Feb 2024 14:05:57 +0100 Subject: [PATCH] Update actions to versions running on Node20 As per https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/, GitHub has started a deprecation process for the GitHub Actions that run on Node16. We're updating Actions that use this version of Node to newer versions, running on Node20. --- .github/workflows/contracts-docs.yml | 4 ++-- .github/workflows/contracts.yml | 34 ++++++++++++++-------------- .github/workflows/format.yml | 4 ++-- .github/workflows/npm.yml | 4 ++-- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/contracts-docs.yml b/.github/workflows/contracts-docs.yml index b570e2dc..1bbbe60e 100644 --- a/.github/workflows/contracts-docs.yml +++ b/.github/workflows/contracts-docs.yml @@ -16,9 +16,9 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: diff --git a/.github/workflows/contracts.yml b/.github/workflows/contracts.yml index ea5d333f..cddb37bb 100644 --- a/.github/workflows/contracts.yml +++ b/.github/workflows/contracts.yml @@ -40,10 +40,10 @@ jobs: outputs: system-tests: ${{ steps.filter.outputs.system-tests }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: @@ -55,9 +55,9 @@ jobs: contracts-build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -78,9 +78,9 @@ jobs: contracts-deployment-dry-run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -101,9 +101,9 @@ jobs: && github.ref != 'refs/heads/dapp-development' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -156,7 +156,7 @@ jobs: version: ${{ steps.npm-version-bump.outputs.version }} - name: Upload files needed for etherscan verification - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts for etherscan verifcation path: | @@ -168,14 +168,14 @@ jobs: needs: [contracts-deployment-testnet] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download files needed for etherscan verification - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: Artifacts for etherscan verifcation - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -212,9 +212,9 @@ jobs: && github.ref == 'refs/heads/dapp-development' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -270,9 +270,9 @@ jobs: github.event_name != 'workflow_dispatch' && github.event_name != 'schedule' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -280,7 +280,7 @@ jobs: node-version: "18.15.0" cache: "yarn" - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.10.8 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 337974eb..1a5208df 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -11,9 +11,9 @@ jobs: code-lint-and-format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: "18" cache: "yarn" diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 3c054b81..783f6a80 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -16,9 +16,9 @@ jobs: npm-compile-publish-contracts: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 may cause issues with the # artifacts generation during `hardhat compile` - see