Skip to content

Commit 93340e7

Browse files
mds1sambacha
andauthored
ci: modernize workflows (#550)
* Update ci.yml * Update sync.yml * ci: simplify diff --------- Co-authored-by: sam bacha <[email protected]>
1 parent 78f49b5 commit 93340e7

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Install Foundry
17-
uses: onbjerg/foundry-toolchain@v1
17+
uses: foundry-rs/foundry-toolchain@v1
1818
with:
1919
version: nightly
2020

@@ -28,7 +28,6 @@ jobs:
2828
if: always()
2929
run: |
3030
output=$(forge build --skip test)
31-
3231
if echo "$output" | grep -q "Warning"; then
3332
echo "$output"
3433
exit 1
@@ -38,7 +37,6 @@ jobs:
3837
if: always()
3938
run: |
4039
output=$(forge build --skip test --use solc:0.8.0)
41-
4240
if echo "$output" | grep -q "Warning"; then
4341
echo "$output"
4442
exit 1
@@ -48,7 +46,6 @@ jobs:
4846
if: always()
4947
run: |
5048
output=$(forge build --skip test --use solc:0.7.6)
51-
5249
if echo "$output" | grep -q "Warning"; then
5350
echo "$output"
5451
exit 1
@@ -58,7 +55,6 @@ jobs:
5855
if: always()
5956
run: |
6057
output=$(forge build --skip test --use solc:0.7.0)
61-
6258
if echo "$output" | grep -q "Warning"; then
6359
echo "$output"
6460
exit 1
@@ -68,7 +64,6 @@ jobs:
6864
if: always()
6965
run: |
7066
output=$(forge build --skip test --use solc:0.6.12)
71-
7267
if echo "$output" | grep -q "Warning"; then
7368
echo "$output"
7469
exit 1
@@ -78,7 +73,6 @@ jobs:
7873
if: always()
7974
run: |
8075
output=$(forge build --skip test --use solc:0.6.2)
81-
8276
if echo "$output" | grep -q "Warning"; then
8377
echo "$output"
8478
exit 1
@@ -104,10 +98,10 @@ jobs:
10498
test:
10599
runs-on: ubuntu-latest
106100
steps:
107-
- uses: actions/checkout@v3
101+
- uses: actions/checkout@v4
108102

109103
- name: Install Foundry
110-
uses: onbjerg/foundry-toolchain@v1
104+
uses: foundry-rs/foundry-toolchain@v1
111105
with:
112106
version: nightly
113107

@@ -120,10 +114,10 @@ jobs:
120114
fmt:
121115
runs-on: ubuntu-latest
122116
steps:
123-
- uses: actions/checkout@v3
117+
- uses: actions/checkout@v4
124118

125119
- name: Install Foundry
126-
uses: onbjerg/foundry-toolchain@v1
120+
uses: foundry-rs/foundry-toolchain@v1
127121
with:
128122
version: nightly
129123

.github/workflows/sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
if: startsWith(github.event.release.tag_name, 'v1')
1212
steps:
1313
- name: Check out the repo
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
ref: v1
1818

19+
# The email is derived from the bots user id,
20+
# found here: https://api.github.com/users/github-actions%5Bbot%5D
1921
- name: Configure Git
2022
run: |
2123
git config user.name github-actions[bot]

0 commit comments

Comments
 (0)