Bump version to 0.1.5 #18
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
on: [push] | |
name: Build, Lint and Test | |
jobs: | |
check: | |
name: Checking | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: 1.63 | |
components: rustfmt, clippy | |
- name: cargo fmt | |
run: cargo fmt --all -- --check | |
- name: cargo clippy | |
run: cargo clippy --workspace --all-targets | |
- name: cargo test | |
run: cargo test --workspace | |
coverage: | |
name: Test Coverage | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
id: toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: llvm-tools-preview | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Generate Code Coverage | |
run: cargo llvm-cov --workspace --lcov --output-path lcov.info | |
- name: Upload Results to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
RUSTUP_TOOLCHAIN: ${{ steps.toolchain.outputs.name }} | |
with: | |
file: lcov.info | |
flags: unittests | |
name: iof | |
env_vars: OS,RUSTUP_TOOLCHAIN | |
# Failing to upload results will cause a CI error. | |
# So remember to use a token. | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true |