Skip to content

Commit 5577cc6

Browse files
committed
workflow
1 parent 703219f commit 5577cc6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ jobs:
3939
forge build --sizes
4040
id: build
4141

42-
- name: Run Forge tests
42+
- name: Confirm comparison snapshot
43+
run: |
44+
forge snapshot --match-path "test/comparison/*" --check
45+
id: comparison-snapshot
46+
47+
- name: Run all Forge tests
4348
run: |
4449
forge test -vvv
4550
id: test
4651

47-
- name: Run snapshot
52+
- name: Check snapshots directory did not update
4853
run: |
49-
forge snapshot --match-path "test/comparison/*" --check
50-
id: test-committed
54+
git diff --exit-code snapshots
55+
id: no-diff-snapshot

0 commit comments

Comments
 (0)