Skip to content

test(e2e): retry a failing .test up to twice (stabilize CI flakes) #420

test(e2e): retry a failing .test up to twice (stabilize CI flakes)

test(e2e): retry a failing .test up to twice (stabilize CI flakes) #420

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
# Strict checks on macOS + Ubuntu — fmt + clippy + test. These two
# share the same UDS-based pty pane path so most surface area is
# exercised by either runner; both gate the merge.
check:
name: fmt · clippy · test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
# mnml depends on the fim-engine sibling crate by path (../fim-engine),
# so check it out alongside this repo for the path dep to resolve.
- name: Checkout mnml
uses: actions/checkout@v4
with:
path: mnml
- name: Checkout fim-engine
uses: actions/checkout@v4
with:
repository: chris-mclennan/fim-engine
path: fim-engine
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: mnml
key: ${{ matrix.os }}
- name: rustfmt
if: matrix.os == 'ubuntu-latest'
working-directory: mnml
run: cargo fmt --all --check
- name: clippy
working-directory: mnml
run: cargo clippy --all-targets -- -D warnings
- name: test
working-directory: mnml
run: cargo test