Skip to content

Commit

Permalink
ci: require new fixtures be committed
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Nov 25, 2024
1 parent 775acb0 commit 6d537ef
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jobs:
name: Test Programs
runs-on: ubuntu-latest
needs: format_and_lint_programs
env:
EJECT_FUZZ_FIXTURES_FD: "fuzz/blob"
EJECT_FUZZ_FIXTURES_JSON_FD: "fuzz/json"
steps:
- name: Git Checkout
uses: actions/checkout@v4
Expand All @@ -108,6 +111,15 @@ jobs:

- name: Test Programs
run: pnpm programs:test

- name: Check Working Directory
run: |
if [ -n "$(git status --porcelain)" ]; then
test -z "$(git status --porcelain)"
echo "Generated test fixtures have changed. Please set the `EJECT_FUZZ_FIXTURES_FD` and `EJECT_FUZZ_FIXTURES_JSON_FD`, \
remove the existing fixtures, run the tests, and commit the updated fixtures.";
exit 1;
fi
bench_program_compute_units:
name: Benchmark Program Compute Units
Expand Down

0 comments on commit 6d537ef

Please sign in to comment.