ci: include more tests #20
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: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Clippy | |
| run: | | |
| rustup component add clippy | |
| cargo clippy --all-targets --all-features | |
| - name: Coverage | |
| run: | | |
| cargo install cargo-tarpaulin | |
| cargo tarpaulin --all-targets --all-features --out stdout --engine llvm | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: cargo build --verbose --all-targets | |
| - name: Run tests (Standard) | |
| run: cargo test --verbose --all-targets | |
| - name: Run tests (Encoding Only) | |
| run: cargo test --verbose --all-targets --no-default-features --features=encoding | |
| - name: Run tests (No Features) | |
| run: cargo test --verbose --all-targets --no-default-features | |
| - name: Run tests (All Features) | |
| run: cargo test --verbose --all-targets --all-features |