Merge pull request #1685 from informalsystems/release/0.25.1 #177
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Evaluator | |
on: | |
push: | |
branches: main | |
merge_group: | |
pull_request: | |
permissions: | |
contents: read | |
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. | |
# Ensures that we don't waste CI time, and returns results quicker. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_TERM_COLOR: always | |
CARGO_PROFILE_DEV_DEBUG: 1 | |
CARGO_PROFILE_RELEASE_DEBUG: 1 | |
RUST_BACKTRACE: short | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
GIT_LFS_SKIP_SMUDGE: 1 | |
jobs: | |
changes: | |
name: Detect changes | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
evaluator: ${{ steps.filter.outputs.evaluator }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
evaluator: | |
- 'evaluator/**' | |
unit: | |
name: Unit Tests | |
needs: changes | |
if: ${{ needs.changes.outputs.evaluator == 'true' || github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./evaluator | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Install cargo-nextest | |
uses: taiki-e/install-action@cargo-nextest | |
- name: Install node | |
uses: actions/setup-node@v3 | |
- name: Install Quint | |
run: cd ../quint && npm ci && npm run compile && npm link | |
- name: Run tests | |
run: | | |
cargo nextest run \ | |
--workspace \ | |
--all-features \ | |
--no-fail-fast \ | |
--failure-output final |