Release v0.1.6 #31
Workflow file for this run
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: pr-validation | |
| on: | |
| pull_request: | |
| branches: [main] | |
| env: | |
| RUST_VERSION: 1.86.0 | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ env.RUST_VERSION }} | |
| components: clippy, rustfmt | |
| - name: build | |
| run: cargo build --verbose | |
| - name: test | |
| run: cargo test --verbose | |
| - name: install clippy | |
| run: rustup component add clippy | |
| - name: lint | |
| run: cargo clippy -- -D warnings | |
| - name: fmt | |
| run: cargo fmt --check | |
| check-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: install cargo-binstall | |
| run: | | |
| wget https://github.com/ryankurte/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz | |
| tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz | |
| - name: install cargo-tarpaulin | |
| run: ./cargo-binstall --no-confirm cargo-tarpaulin | |
| - uses: actions/checkout@v4 | |
| - name: verify coverage | |
| run: cargo tarpaulin --fail-under 50 |