Skip to content

Commit 837f9f2

Browse files
committed
ci: require new fixtures be committed
1 parent 7a79e86 commit 837f9f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ jobs:
9595
name: Test Programs
9696
runs-on: ubuntu-latest
9797
needs: format_and_lint_programs
98+
env:
99+
EJECT_FUZZ_FIXTURES_FD: "fuzz/blob"
100+
EJECT_FUZZ_FIXTURES_JSON_FD: "fuzz/json"
98101
steps:
99102
- name: Git Checkout
100103
uses: actions/checkout@v4
@@ -108,6 +111,15 @@ jobs:
108111

109112
- name: Test Programs
110113
run: pnpm programs:test
114+
115+
- name: Check Working Directory
116+
run: |
117+
if [ -n "$(git status --porcelain)" ]; then
118+
test -z "$(git status --porcelain)"
119+
echo "Generated test fixtures have changed. Please set the `EJECT_FUZZ_FIXTURES_FD` and `EJECT_FUZZ_FIXTURES_JSON_FD`, \
120+
remove the existing fixtures, run the tests, and commit the updated fixtures.";
121+
exit 1;
122+
fi
111123
112124
bench_program_compute_units:
113125
name: Benchmark Program Compute Units

0 commit comments

Comments
 (0)