Skip to content

Commit

Permalink
Run trustfall_stubgen tests when the directory has changed. (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi1kenobi authored Jul 27, 2023
1 parent 5e7c16f commit 21fc5aa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
persist-credentials: true

- name: Install rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -189,10 +189,17 @@ jobs:
- uses: r7kamura/rust-problem-matchers@v1

# Test everything except trustfall_stubgen,
# which is only tested at release time since its tests are a bit long.
# which is only tested if it has changed since its tests are a bit long.
- name: cargo test
run: cargo test --workspace --all-targets --all-features --exclude trustfall_stubgen

- name: test trustfall_stubgen if it has changed
run: |
git fetch origin main
# `git diff --quiet` exits non-zero if there are changes
git diff --quiet HEAD origin/main -- ./trustfall_stubgen || (cd trustfall_stubgen/ && cargo test --all-targets --all-features)
rust-fuzz:
name: Check fuzz targets
runs-on: ubuntu-latest
Expand Down

0 comments on commit 21fc5aa

Please sign in to comment.