Release v0.3.0 #26
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: build-test | |
on: push | |
jobs: | |
validate: | |
name: Format and Lint Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install rustfmt and clippy | |
run: rustup component add rustfmt clippy | |
- name: Run cargo clippy | |
run: cargo clippy --all-targets --all-features -- --deny warnings | |
test: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run tests | |
run: cargo test | |
doc: | |
name: Documentation Check | |
runs-on: ubuntu-latest | |
env: | |
RUSTDOCFLAGS: -Dwarnings | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Generate documentation | |
run: cargo doc --no-deps | |
coverage: | |
name: Code Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install llvm-tools | |
run: rustup toolchain install stable --component llvm-tools | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Generate code coverage | |
run: | | |
cargo llvm-cov --tests --examples --all-targets --all-features --workspace --lcov --output-path lcov.info | |
- name: Upload coverage to coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |