add tests for substitution #10
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: Rust | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| name: cargo test on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: rustup toolchain install stable --profile minimal --no-self-update | |
| - name: Check format | |
| run: cargo fmt --check | |
| - name: Check lockfile | |
| run: cargo build --locked --all-targets | |
| - name: Run tests | |
| run: cargo test --offline | |
| - name: Run clippy | |
| run: cargo clippy --offline |