Skip to content

Commit 6f3b65e

Browse files
authored
Merge pull request #5566 from NomicFoundation/galargh/github-actions-updates-v2
ci(v2): update GitHub actions and review workflow triggers
2 parents 66ffa19 + e96cc50 commit 6f3b65e

34 files changed

+108
-74
lines changed

.github/workflows/LATEST_DEPENDENCY_VERSIONS.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: pnpm test || (echo "===== Retry =====" && pnpm test)
3535
- name: Notify failures
3636
if: failure()
37-
uses: slackapi/slack-github-action@v1.18.0
37+
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
3838
with:
3939
payload: |
4040
{

.github/workflows/add-issue-to-project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
add-to-project:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/add-to-project@v0.4.0
13+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
1414
with:
1515
project-url: https://github.com/orgs/NomicFoundation/projects/4
1616
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

.github/workflows/add-label-to-new-issue.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
issues: write
1414
pull-requests: write
1515
steps:
16-
- uses: actions/github-script@v6
16+
- uses: actions/github-script@v7
1717
with:
1818
script: |
1919
const issue = await github.rest.issues.get({

.github/workflows/autoassign-issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions:
1111
issues: write
1212
steps:
13-
- uses: actions/github-script@v6
13+
- uses: actions/github-script@v7
1414
with:
1515
script: |
1616
// each user has a chance of (p - (previousP ?? 0)) to be assigned

.github/workflows/autoassign-prs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions:
1111
pull-requests: write
1212
steps:
13-
- uses: actions/github-script@v6
13+
- uses: actions/github-script@v7
1414
with:
1515
script: |
1616
const externalPrTriager = "kanej";

.github/workflows/check-changeset-added.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# don't run this check in the changesets PR
2222
if: github.head_ref != 'changeset-release/main'
2323
steps:
24-
- uses: actions/github-script@v6
24+
- uses: actions/github-script@v7
2525
with:
2626
script: |
2727
const pullNumber = context.issue.number;

.github/workflows/check-docs-site.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ name: Check Docs Site
33
on:
44
push:
55
branches:
6-
- "**"
6+
- main
7+
paths:
8+
- ".github/workflows/check-docs-site.yml"
9+
- "docs/**"
10+
- "packages/**"
11+
pull_request:
12+
paths:
13+
- ".github/workflows/check-docs-site.yml"
14+
- "docs/**"
15+
- "packages/**"
716
workflow_dispatch:
817

918
concurrency:

.github/workflows/close-stale-issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Close stale issues
13-
uses: actions/stale@v8
13+
uses: actions/stale@v9
1414
with:
1515
repo-token: ${{ secrets.GITHUB_TOKEN }}
1616
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."

.github/workflows/comment-on-linter-error.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types:
66
- opened
77
branches:
8-
- $default-branch
8+
- main
99

1010
concurrency:
1111
group: ${{github.workflow}}-${{github.ref}}
@@ -41,7 +41,7 @@ jobs:
4141
- name: Lint website
4242
working-directory: docs/
4343
run: pnpm lint
44-
- uses: actions/github-script@v6
44+
- uses: actions/github-script@v7
4545
name: Comment on failure
4646
if: ${{ failure() }}
4747
with:

.github/workflows/e2e-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: E2E tests
33
on:
44
push:
55
branches:
6-
- "main"
6+
- main
77
pull_request:
88
branches:
9-
- "main"
9+
- main
1010

1111
jobs:
1212
run-e2e:

.github/workflows/hardhat-chai-matchers-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: hardhat-chai-matchers CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-chai-matchers-ci.yml"
79
- "packages/hardhat-chai-matchers/**"
810
- "packages/hardhat-common/**"
911
- "config/**"
1012
pull_request:
11-
branches:
12-
- "**"
1313
paths:
14+
- ".github/workflows/hardhat-chai-matchers-ci.yml"
1415
- "packages/hardhat-chai-matchers/**"
1516
- "packages/hardhat-common/**"
1617
- "config/**"

.github/workflows/hardhat-core-ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
- "packages/hardhat-core/**"
1313
- "packages/hardhat-common/**"
1414
pull_request:
15-
branches:
16-
- "**"
1715
paths:
1816
- ".github/workflows/hardhat-core-ci.yml"
1917
- "config/**"
@@ -39,7 +37,7 @@ jobs:
3937
node: [18.15]
4038
os: ["macos-13", "ubuntu-latest", "windows-latest"]
4139
steps:
42-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4341

4442
- uses: pnpm/action-setup@v4
4543
with:
@@ -81,7 +79,7 @@ jobs:
8179
node: [18.15]
8280
os: ["macos-13", "ubuntu-latest", "windows-latest"]
8381
steps:
84-
- uses: actions/checkout@v3
82+
- uses: actions/checkout@v4
8583

8684
- uses: pnpm/action-setup@v4
8785
with:
@@ -96,7 +94,7 @@ jobs:
9694
run: pnpm install --frozen-lockfile --prefer-offline
9795

9896
- name: Cache EDR RPC cache
99-
uses: actions/cache@v2
97+
uses: actions/cache@v4
10098
with:
10199
path: |
102100
packages/hardhat-core/test/internal/hardhat-network/edr-cache

.github/workflows/hardhat-ethers-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: hardhat-ethers CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-ethers-ci.yml"
79
- "packages/hardhat-ethers/**"
810
- "packages/hardhat-core/**"
911
- "packages/hardhat-common/**"
1012
- "config/**"
1113
pull_request:
12-
branches:
13-
- "**"
1414
paths:
15+
- ".github/workflows/hardhat-ethers-ci.yml"
1516
- "packages/hardhat-ethers/**"
1617
- "packages/hardhat-core/**"
1718
- "packages/hardhat-common/**"

.github/workflows/hardhat-foundry-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: hardhat-foundry CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-foundry-ci.yml"
79
- "packages/hardhat-foundry/**"
810
- "packages/hardhat-common/**"
911
- "config/**"
1012
pull_request:
11-
branches:
12-
- "**"
1313
paths:
14+
- ".github/workflows/hardhat-foundry-ci.yml"
1415
- "packages/hardhat-foundry/**"
1516
- "packages/hardhat-common/**"
1617
- "config/**"

.github/workflows/hardhat-ledger-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
branches:
66
- main
77
paths:
8+
- ".github/workflows/hardhat-ledger-ci.yml"
89
- "packages/hardhat-ledger/**"
910
- "packages/hardhat-core/**"
1011
- "packages/hardhat-common/**"
1112
- "config/**"
1213
pull_request:
13-
branches:
14-
- "**"
1514
paths:
15+
- ".github/workflows/hardhat-foundry-ci.yml"
1616
- "packages/hardhat-ledger/**"
1717
- "packages/hardhat-core/**"
1818
- "packages/hardhat-common/**"

.github/workflows/hardhat-network-helpers-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: hardhat-network-helpers CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-network-helpers-ci.yml"
79
- "packages/hardhat-core/**"
810
- "packages/hardhat-network-helpers/**"
911
- "packages/hardhat-common/**"
1012
- "config/**"
1113
pull_request:
12-
branches:
13-
- "**"
1414
paths:
15+
- ".github/workflows/hardhat-network-helpers-ci.yml"
1516
- "packages/hardhat-core/**"
1617
- "packages/hardhat-network-helpers/**"
1718
- "packages/hardhat-common/**"

.github/workflows/hardhat-network-tracing-all-solc-versions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Build
3535
run: pnpm build
3636
- name: Cache artifacts
37-
uses: actions/cache@v2
37+
uses: actions/cache@v4
3838
with:
3939
path: |
4040
packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/artifacts

.github/workflows/hardhat-shorthand-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: hardhat-shorthand CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-shorthand-ci.yml"
79
- "packages/hardhat-shorthand/**"
810
- "packages/hardhat-core/**"
911
- "packages/hardhat-common/**"
1012
- "config/**"
1113
pull_request:
12-
branches:
13-
- "**"
1414
paths:
15+
- ".github/workflows/hardhat-shorthand-ci.yml"
1516
- "packages/hardhat-shorthand/**"
1617
- "packages/hardhat-core/**"
1718
- "packages/hardhat-common/**"

.github/workflows/hardhat-solhint-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: hardhat-solhint CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-solhint-ci.yml"
79
- "packages/hardhat-solhint/**"
810
- "packages/hardhat-core/**"
911
- "packages/hardhat-common/**"
1012
- "config/**"
1113
pull_request:
12-
branches:
13-
- "**"
1414
paths:
15+
- ".github/workflows/hardhat-solhint-ci.yml"
1516
- "packages/hardhat-solhint/**"
1617
- "packages/hardhat-core/**"
1718
- "packages/hardhat-common/**"

.github/workflows/hardhat-solpp-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: hardhat-solpp CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-solpp-ci.yml"
79
- "packages/hardhat-solpp/**"
810
- "packages/hardhat-core/**"
911
- "packages/hardhat-common/**"
1012
- "config/**"
1113
pull_request:
12-
branches:
13-
- "**"
1414
paths:
15+
- ".github/workflows/hardhat-solpp-ci.yml"
1516
- "packages/hardhat-solpp/**"
1617
- "packages/hardhat-core/**"
1718
- "packages/hardhat-common/**"

.github/workflows/hardhat-toolbox-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: hardhat-toolbox CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-toolbox-ci.yml"
79
- "packages/hardhat-toolbox/**"
810
- "packages/hardhat-core/**"
911
- "packages/hardhat-chai-matchers/**"
@@ -13,9 +15,8 @@ on:
1315
- "packages/hardhat-common/**"
1416
- "config/**"
1517
pull_request:
16-
branches:
17-
- "**"
1818
paths:
19+
- ".github/workflows/hardhat-toolbox-ci.yml"
1920
- "packages/hardhat-toolbox/**"
2021
- "packages/hardhat-core/**"
2122
- "packages/hardhat-chai-matchers/**"

.github/workflows/hardhat-truffle4-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ name: hardhat-truffle4 CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
8+
- ".github/workflows/hardhat-truffle4-ci.yml"
79
- "packages/hardhat-truffle4/**"
810
- "packages/hardhat-web3-legacy/**"
911
- "packages/hardhat-core/**"
1012
- "packages/hardhat-common/**"
1113
- "config/**"
1214
pull_request:
13-
branches:
14-
- "**"
1515
paths:
16+
- ".github/workflows/hardhat-truffle4-ci.yml"
1617
- "packages/hardhat-truffle4/**"
1718
- "packages/hardhat-web3-legacy/**"
1819
- "packages/hardhat-core/**"

.github/workflows/hardhat-truffle5-ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: hardhat-truffle5 CI
22

33
on:
44
push:
5-
branches: [$default-branch]
5+
branches:
6+
- main
67
paths:
78
- "packages/hardhat-truffle5/**"
89
- "packages/hardhat-web3/**"
910
- "packages/hardhat-core/**"
1011
- "packages/hardhat-common/**"
1112
- "config/**"
1213
pull_request:
13-
branches:
14-
- "**"
1514
paths:
15+
- ".github/workflows/hardhat-truffle5-ci.yml"
1616
- "packages/hardhat-truffle5/**"
1717
- "packages/hardhat-web3/**"
1818
- "packages/hardhat-core/**"

0 commit comments

Comments
 (0)