Merge pull request #3 from Flokkq/prepare_release #37
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
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
target | |
~/.cargo/registry | |
~/.cargo/bin | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- run: cargo install cargo-tarpaulin | |
- run: cargo tarpaulin --no-fail-fast --out xml || true | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
target | |
~/.cargo/registry | |
~/.cargo/bin | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
${{ runner.os }}-cargo- | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
components: clippy, rustfmt | |
toolchain: nightly | |
- run: cargo fmt --check && cargo clippy --all-features --all-targets --workspace | |
- run: cargo test --all-features smd | |
name: main | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main |