ci: use Nextest, remove broken rust-cache, more unit test coverage #439
Workflow file for this run
This file contains 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: I2::Tests::UI | |
on: | |
pull_request: | |
branches: [main, stable, lts] | |
paths: | |
- 'crates/*_derive/**.rs' | |
- 'crates/*_macro*/**.rs' | |
- '**/tests/ui.rs' | |
- '**/tests/ui_*/**' | |
- 'rust-toolchain.toml' | |
- '.github/workflows/iroha2-pr-ui.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_TOOLCHAIN: nightly-2024-09-09 | |
jobs: | |
tests: | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
feature_flag: [all-features, no-default-features] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ env.RUST_TOOLCHAIN }} | |
- uses: Leafwing-Studios/cargo-cache@v2 | |
with: | |
sweep-cache: true | |
save-always: true | |
- uses: taiki-e/install-action@nextest | |
- name: Run UI tests, with ${{ matrix.feature_flag }} | |
run: cargo nextest run --no-fail-fast -E 'test(ui)' --${{ matrix.feature_flag }} |