Skip to content

fix(ci): integration, simplify maintenance of runnable examples list #357

fix(ci): integration, simplify maintenance of runnable examples list

fix(ci): integration, simplify maintenance of runnable examples list #357

Workflow file for this run

# Runs build checks and examples.
name: Test
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
checks:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: cargo hack check --feature-powerset --depth 2
examples:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: foundry-rs/foundry-toolchain@v1
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run examples
run: ./scripts/run.sh