Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run trustfall_stubgen tests when the directory has changed. #408

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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