diff --git a/.github/workflows/LATEST_DEPENDENCY_VERSIONS.yml b/.github/workflows/LATEST_DEPENDENCY_VERSIONS.yml index f5e4b8a397..6e79ca61eb 100644 --- a/.github/workflows/LATEST_DEPENDENCY_VERSIONS.yml +++ b/.github/workflows/LATEST_DEPENDENCY_VERSIONS.yml @@ -34,7 +34,7 @@ jobs: run: pnpm test || (echo "===== Retry =====" && pnpm test) - name: Notify failures if: failure() - uses: slackapi/slack-github-action@v1.18.0 + uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0 with: payload: | { diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml index 5ab3e0b2db..566c37f177 100644 --- a/.github/workflows/add-issue-to-project.yml +++ b/.github/workflows/add-issue-to-project.yml @@ -10,7 +10,7 @@ jobs: add-to-project: runs-on: ubuntu-latest steps: - - uses: actions/add-to-project@v0.4.0 + - uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2 with: project-url: https://github.com/orgs/NomicFoundation/projects/4 github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/add-label-to-new-issue.yml b/.github/workflows/add-label-to-new-issue.yml index a6c6c5345d..2bd47099b5 100644 --- a/.github/workflows/add-label-to-new-issue.yml +++ b/.github/workflows/add-label-to-new-issue.yml @@ -13,7 +13,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | const issue = await github.rest.issues.get({ diff --git a/.github/workflows/autoassign-issues.yml b/.github/workflows/autoassign-issues.yml index efd4be5620..318b21074a 100644 --- a/.github/workflows/autoassign-issues.yml +++ b/.github/workflows/autoassign-issues.yml @@ -10,7 +10,7 @@ jobs: permissions: issues: write steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | // each user has a chance of (p - (previousP ?? 0)) to be assigned diff --git a/.github/workflows/autoassign-prs.yml b/.github/workflows/autoassign-prs.yml index df5441a02f..f98c9f4f09 100644 --- a/.github/workflows/autoassign-prs.yml +++ b/.github/workflows/autoassign-prs.yml @@ -10,7 +10,7 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | const externalPrTriager = "kanej"; diff --git a/.github/workflows/check-changeset-added.yml b/.github/workflows/check-changeset-added.yml index 475fd48ec5..143e1adb39 100644 --- a/.github/workflows/check-changeset-added.yml +++ b/.github/workflows/check-changeset-added.yml @@ -21,7 +21,7 @@ jobs: # don't run this check in the changesets PR if: github.head_ref != 'changeset-release/main' steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: script: | const pullNumber = context.issue.number; diff --git a/.github/workflows/check-docs-site.yml b/.github/workflows/check-docs-site.yml index 3f4af679cb..de30550e4d 100644 --- a/.github/workflows/check-docs-site.yml +++ b/.github/workflows/check-docs-site.yml @@ -3,7 +3,16 @@ name: Check Docs Site on: push: branches: - - "**" + - main + paths: + - ".github/workflows/check-docs-site.yml" + - "docs/**" + - "packages/**" + pull_request: + paths: + - ".github/workflows/check-docs-site.yml" + - "docs/**" + - "packages/**" workflow_dispatch: concurrency: diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 9d84321d06..1040604e94 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Close stale issues - uses: actions/stale@v8 + uses: actions/stale@v9 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: "This issue has been automatically closed due to inactivity. If you still need help, please reopen the issue and provide the requested information." diff --git a/.github/workflows/comment-on-linter-error.yml b/.github/workflows/comment-on-linter-error.yml index 79a8036e0d..2164793180 100644 --- a/.github/workflows/comment-on-linter-error.yml +++ b/.github/workflows/comment-on-linter-error.yml @@ -5,7 +5,7 @@ on: types: - opened branches: - - $default-branch + - main concurrency: group: ${{github.workflow}}-${{github.ref}} @@ -41,7 +41,7 @@ jobs: - name: Lint website working-directory: docs/ run: pnpm lint - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 name: Comment on failure if: ${{ failure() }} with: diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 08f1e47d12..15cecd5d57 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -3,10 +3,10 @@ name: E2E tests on: push: branches: - - "main" + - main pull_request: branches: - - "main" + - main jobs: run-e2e: diff --git a/.github/workflows/hardhat-chai-matchers-ci.yml b/.github/workflows/hardhat-chai-matchers-ci.yml index 8a8c3383e4..3e849d15cf 100644 --- a/.github/workflows/hardhat-chai-matchers-ci.yml +++ b/.github/workflows/hardhat-chai-matchers-ci.yml @@ -2,15 +2,16 @@ name: hardhat-chai-matchers CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-chai-matchers-ci.yml" - "packages/hardhat-chai-matchers/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-chai-matchers-ci.yml" - "packages/hardhat-chai-matchers/**" - "packages/hardhat-common/**" - "config/**" diff --git a/.github/workflows/hardhat-core-ci.yml b/.github/workflows/hardhat-core-ci.yml index a3394316b2..c97d085815 100644 --- a/.github/workflows/hardhat-core-ci.yml +++ b/.github/workflows/hardhat-core-ci.yml @@ -12,8 +12,6 @@ on: - "packages/hardhat-core/**" - "packages/hardhat-common/**" pull_request: - branches: - - "**" paths: - ".github/workflows/hardhat-core-ci.yml" - "config/**" @@ -39,7 +37,7 @@ jobs: node: [18.15] os: ["macos-13", "ubuntu-latest", "windows-latest"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: @@ -81,7 +79,7 @@ jobs: node: [18.15] os: ["macos-13", "ubuntu-latest", "windows-latest"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: @@ -96,7 +94,7 @@ jobs: run: pnpm install --frozen-lockfile --prefer-offline - name: Cache EDR RPC cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | packages/hardhat-core/test/internal/hardhat-network/edr-cache diff --git a/.github/workflows/hardhat-ethers-ci.yml b/.github/workflows/hardhat-ethers-ci.yml index ed6bc1a7bb..a5fd01daab 100644 --- a/.github/workflows/hardhat-ethers-ci.yml +++ b/.github/workflows/hardhat-ethers-ci.yml @@ -2,16 +2,17 @@ name: hardhat-ethers CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-ethers-ci.yml" - "packages/hardhat-ethers/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-ethers-ci.yml" - "packages/hardhat-ethers/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-foundry-ci.yml b/.github/workflows/hardhat-foundry-ci.yml index 7d5eb8c5c9..1456dc1ae6 100644 --- a/.github/workflows/hardhat-foundry-ci.yml +++ b/.github/workflows/hardhat-foundry-ci.yml @@ -2,15 +2,16 @@ name: hardhat-foundry CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-foundry-ci.yml" - "packages/hardhat-foundry/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-foundry-ci.yml" - "packages/hardhat-foundry/**" - "packages/hardhat-common/**" - "config/**" diff --git a/.github/workflows/hardhat-ledger-ci.yml b/.github/workflows/hardhat-ledger-ci.yml index 095739e069..6ace08548d 100644 --- a/.github/workflows/hardhat-ledger-ci.yml +++ b/.github/workflows/hardhat-ledger-ci.yml @@ -5,14 +5,14 @@ on: branches: - main paths: + - ".github/workflows/hardhat-ledger-ci.yml" - "packages/hardhat-ledger/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-foundry-ci.yml" - "packages/hardhat-ledger/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-network-helpers-ci.yml b/.github/workflows/hardhat-network-helpers-ci.yml index cf565d7f56..8d2d82ed47 100644 --- a/.github/workflows/hardhat-network-helpers-ci.yml +++ b/.github/workflows/hardhat-network-helpers-ci.yml @@ -2,16 +2,17 @@ name: hardhat-network-helpers CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-network-helpers-ci.yml" - "packages/hardhat-core/**" - "packages/hardhat-network-helpers/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-network-helpers-ci.yml" - "packages/hardhat-core/**" - "packages/hardhat-network-helpers/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-network-tracing-all-solc-versions.yml b/.github/workflows/hardhat-network-tracing-all-solc-versions.yml index 1dde30263f..d657577392 100644 --- a/.github/workflows/hardhat-network-tracing-all-solc-versions.yml +++ b/.github/workflows/hardhat-network-tracing-all-solc-versions.yml @@ -34,7 +34,7 @@ jobs: - name: Build run: pnpm build - name: Cache artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/artifacts diff --git a/.github/workflows/hardhat-shorthand-ci.yml b/.github/workflows/hardhat-shorthand-ci.yml index 7801a82cbe..fe87b351e5 100644 --- a/.github/workflows/hardhat-shorthand-ci.yml +++ b/.github/workflows/hardhat-shorthand-ci.yml @@ -2,16 +2,17 @@ name: hardhat-shorthand CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-shorthand-ci.yml" - "packages/hardhat-shorthand/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-shorthand-ci.yml" - "packages/hardhat-shorthand/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-solhint-ci.yml b/.github/workflows/hardhat-solhint-ci.yml index ec06a1a480..b1dc5f5776 100644 --- a/.github/workflows/hardhat-solhint-ci.yml +++ b/.github/workflows/hardhat-solhint-ci.yml @@ -2,16 +2,17 @@ name: hardhat-solhint CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-solhint-ci.yml" - "packages/hardhat-solhint/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-solhint-ci.yml" - "packages/hardhat-solhint/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-solpp-ci.yml b/.github/workflows/hardhat-solpp-ci.yml index 2709a47215..33ce29b663 100644 --- a/.github/workflows/hardhat-solpp-ci.yml +++ b/.github/workflows/hardhat-solpp-ci.yml @@ -2,16 +2,17 @@ name: hardhat-solpp CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-solpp-ci.yml" - "packages/hardhat-solpp/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-solpp-ci.yml" - "packages/hardhat-solpp/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-toolbox-ci.yml b/.github/workflows/hardhat-toolbox-ci.yml index 83e9613128..1f4b641149 100644 --- a/.github/workflows/hardhat-toolbox-ci.yml +++ b/.github/workflows/hardhat-toolbox-ci.yml @@ -2,8 +2,10 @@ name: hardhat-toolbox CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-toolbox-ci.yml" - "packages/hardhat-toolbox/**" - "packages/hardhat-core/**" - "packages/hardhat-chai-matchers/**" @@ -13,9 +15,8 @@ on: - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-toolbox-ci.yml" - "packages/hardhat-toolbox/**" - "packages/hardhat-core/**" - "packages/hardhat-chai-matchers/**" diff --git a/.github/workflows/hardhat-truffle4-ci.yml b/.github/workflows/hardhat-truffle4-ci.yml index f813ca4ccd..5b5740986b 100644 --- a/.github/workflows/hardhat-truffle4-ci.yml +++ b/.github/workflows/hardhat-truffle4-ci.yml @@ -2,17 +2,18 @@ name: hardhat-truffle4 CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-truffle4-ci.yml" - "packages/hardhat-truffle4/**" - "packages/hardhat-web3-legacy/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-truffle4-ci.yml" - "packages/hardhat-truffle4/**" - "packages/hardhat-web3-legacy/**" - "packages/hardhat-core/**" diff --git a/.github/workflows/hardhat-truffle5-ci.yml b/.github/workflows/hardhat-truffle5-ci.yml index 90cc0974ea..cc75acc61e 100644 --- a/.github/workflows/hardhat-truffle5-ci.yml +++ b/.github/workflows/hardhat-truffle5-ci.yml @@ -2,7 +2,8 @@ name: hardhat-truffle5 CI on: push: - branches: [$default-branch] + branches: + - main paths: - "packages/hardhat-truffle5/**" - "packages/hardhat-web3/**" @@ -10,9 +11,8 @@ on: - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-truffle5-ci.yml" - "packages/hardhat-truffle5/**" - "packages/hardhat-web3/**" - "packages/hardhat-core/**" diff --git a/.github/workflows/hardhat-verify-ci.yml b/.github/workflows/hardhat-verify-ci.yml index e20471d196..dd324ffe8f 100644 --- a/.github/workflows/hardhat-verify-ci.yml +++ b/.github/workflows/hardhat-verify-ci.yml @@ -2,16 +2,17 @@ name: hardhat-verify CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-verify-ci.yml" - "packages/hardhat-verify/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-verify-ci.yml" - "packages/hardhat-verify/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-viem-ci.yml b/.github/workflows/hardhat-viem-ci.yml index 8ec4a4083a..a59aec4312 100644 --- a/.github/workflows/hardhat-viem-ci.yml +++ b/.github/workflows/hardhat-viem-ci.yml @@ -2,16 +2,17 @@ name: hardhat-viem CI on: push: - branches: main + branches: + - main paths: + - ".github/workflows/hardhat-viem-ci.yml" - "packages/hardhat-viem/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-verify-ci.yml" - "packages/hardhat-viem/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-vyper-ci.yml b/.github/workflows/hardhat-vyper-ci.yml index 1c4f5d3f2b..f3f37432d8 100644 --- a/.github/workflows/hardhat-vyper-ci.yml +++ b/.github/workflows/hardhat-vyper-ci.yml @@ -2,16 +2,17 @@ name: hardhat-vyper CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-vyper-ci.yml" - "packages/hardhat-vyper/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-vyper-ci.yml" - "packages/hardhat-vyper/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-web3-ci.yml b/.github/workflows/hardhat-web3-ci.yml index afc7e4e024..b2c556420e 100644 --- a/.github/workflows/hardhat-web3-ci.yml +++ b/.github/workflows/hardhat-web3-ci.yml @@ -2,16 +2,17 @@ name: hardhat-web3 CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-web3-ci.yml" - "packages/hardhat-web3/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-web3-ci.yml" - "packages/hardhat-web3/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-web3-legacy-ci.yml b/.github/workflows/hardhat-web3-legacy-ci.yml index 18e7e54903..e96515bb38 100644 --- a/.github/workflows/hardhat-web3-legacy-ci.yml +++ b/.github/workflows/hardhat-web3-legacy-ci.yml @@ -2,16 +2,17 @@ name: hardhat-web3-legacy CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-web3-legacy-ci.yml" - "packages/hardhat-web3-legacy/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**/*" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-web3-legacy-ci.yml" - "packages/hardhat-web3-legacy/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/hardhat-web3-v4-ci.yml b/.github/workflows/hardhat-web3-v4-ci.yml index 746413aa6e..ba2779d9bc 100644 --- a/.github/workflows/hardhat-web3-v4-ci.yml +++ b/.github/workflows/hardhat-web3-v4-ci.yml @@ -2,16 +2,17 @@ name: hardhat-web3-v4 CI on: push: - branches: [$default-branch] + branches: + - main paths: + - ".github/workflows/hardhat-web3-v4-ci.yml" - "packages/hardhat-web3-v4/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" - "config/**" pull_request: - branches: - - "**" paths: + - ".github/workflows/hardhat-web3-v4-ci.yml" - "packages/hardhat-web3-v4/**" - "packages/hardhat-core/**" - "packages/hardhat-common/**" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 760e0495f0..55b921b1a2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,10 +2,17 @@ name: Lint on: push: - branches: [$default-branch] - pull_request: branches: - - "**" + - main + paths: + - ".github/workflows/lint.yml" + - "docs/**" + - "packages/**" + pull_request: + paths: + - ".github/workflows/lint.yml" + - "docs/**" + - "packages/**" workflow_dispatch: concurrency: diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 113315dfc2..1b90eae439 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -16,7 +16,8 @@ jobs: action: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@e460dfeb36e731f3aeb214be6b0c9a9d9a67eda6 + - uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1 with: issue-inactive-days: "90" pr-inactive-days: "90" + process-only: "issues, prs" diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 1db35d8a33..d08e3bcfc6 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -31,7 +31,7 @@ jobs: - name: lint run: pnpm lint - name: Cache artifacts - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/artifacts @@ -62,7 +62,7 @@ jobs: - name: Install run: pnpm install --frozen-lockfile --prefer-offline - name: Cache network requests - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | packages/hardhat-core/test/internal/hardhat-network/provider/.hardhat_node_test_cache diff --git a/.github/workflows/review-approved-slack-notification.yml b/.github/workflows/review-approved-slack-notification.yml index 71bbd3352b..cf9edde020 100644 --- a/.github/workflows/review-approved-slack-notification.yml +++ b/.github/workflows/review-approved-slack-notification.yml @@ -1,7 +1,9 @@ name: PR reviewed Slack notification + on: pull_request_review: types: [submitted] + jobs: reviewed: uses: NomicFoundation/github-actions-workflows/.github/workflows/review-submitted-slack-notification.yml@main diff --git a/.github/workflows/review-requested-slack-notification.yml b/.github/workflows/review-requested-slack-notification.yml index 0734a8e907..25f22466bf 100644 --- a/.github/workflows/review-requested-slack-notification.yml +++ b/.github/workflows/review-requested-slack-notification.yml @@ -1,7 +1,9 @@ name: PR review requested Slack notification + on: pull_request_target: types: [review_requested] + jobs: requested: uses: NomicFoundation/github-actions-workflows/.github/workflows/review-requested-slack-notification.yml@main