Skip to content

Commit 2a18526

Browse files
committed
Update test.yml to latest from original hello_foundry repo
1 parent 92b236e commit 2a18526

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: test
1+
name: CI
22

3-
on: workflow_dispatch
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
47

58
env:
69
FOUNDRY_PROFILE: ci
@@ -19,12 +22,18 @@ jobs:
1922

2023
- name: Install Foundry
2124
uses: foundry-rs/foundry-toolchain@v1
22-
with:
23-
version: nightly
2425

25-
- name: Run Forge build
26+
- name: Show Forge version
2627
run: |
2728
forge --version
29+
30+
- name: Run Forge fmt
31+
run: |
32+
forge fmt --check
33+
id: fmt
34+
35+
- name: Run Forge build
36+
run: |
2837
forge build --sizes
2938
id: build
3039

0 commit comments

Comments
 (0)