Skip to content

Commit

Permalink
Merge pull request #5566 from NomicFoundation/galargh/github-actions-…
Browse files Browse the repository at this point in the history
…updates-v2

ci(v2): update GitHub actions and review workflow triggers
  • Loading branch information
galargh authored Aug 2, 2024
2 parents 66ffa19 + e96cc50 commit 6f3b65e
Show file tree
Hide file tree
Showing 34 changed files with 108 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/LATEST_DEPENDENCY_VERSIONS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/add-label-to-new-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autoassign-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autoassign-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-changeset-added.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/check-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/comment-on-linter-error.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- opened
branches:
- $default-branch
- main

concurrency:
group: ${{github.workflow}}-${{github.ref}}
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: E2E tests
on:
push:
branches:
- "main"
- main
pull_request:
branches:
- "main"
- main

jobs:
run-e2e:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-chai-matchers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/hardhat-core-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
- "packages/hardhat-core/**"
- "packages/hardhat-common/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/hardhat-core-ci.yml"
- "config/**"
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-ethers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-foundry-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hardhat-ledger-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-network-helpers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-shorthand-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-solhint-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-solpp-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-toolbox-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand All @@ -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/**"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/hardhat-truffle4-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/hardhat-truffle5-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: hardhat-truffle5 CI

on:
push:
branches: [$default-branch]
branches:
- main
paths:
- "packages/hardhat-truffle5/**"
- "packages/hardhat-web3/**"
- "packages/hardhat-core/**"
- "packages/hardhat-common/**"
- "config/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/hardhat-truffle5-ci.yml"
- "packages/hardhat-truffle5/**"
- "packages/hardhat-web3/**"
- "packages/hardhat-core/**"
Expand Down
Loading

0 comments on commit 6f3b65e

Please sign in to comment.