More descriptive label for Source::Arith
#1579
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: Rust | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_TERM_VERBOSE: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
RUSTDOCFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run basic tests | |
run: ./check.sh -v | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: giraffate/clippy-action@v1 | |
with: | |
reporter: github-pr-review | |
extra: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -D warnings | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run extra tests | |
run: | | |
cargo install cargo-tomlfmt | |
./check-extra.sh -v | |
msrv: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- uses: dtolnay/rust-toolchain@1.65.0 | |
- uses: dtolnay/rust-toolchain@1.77.0 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests with MSRV | |
run: ./check-msrv.sh -v | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Test yash-arith | |
run: cargo test --package yash-arith | |
- name: Test yash-fnmatch | |
run: cargo test --package yash-fnmatch | |
- name: Test yash-quote | |
run: cargo test --package yash-quote | |
- name: Test yash-syntax | |
run: cargo test --package yash-syntax |