Skip to content

Commit 0e07ca5

Browse files
feat(template): improve workflow template (#8439)
Co-authored-by: Matthias Seitz <[email protected]>
1 parent ec4c4aa commit 0e07ca5

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

crates/forge/assets/workflowTemplate.yml

Lines changed: 14 additions & 3 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
@@ -22,9 +25,17 @@ jobs:
2225
with:
2326
version: nightly
2427

25-
- name: Run Forge build
28+
- name: Show Forge version
2629
run: |
2730
forge --version
31+
32+
- name: Run Forge fmt
33+
run: |
34+
forge fmt --check
35+
id: fmt
36+
37+
- name: Run Forge build
38+
run: |
2839
forge build --sizes
2940
id: build
3041

0 commit comments

Comments
 (0)