forked from thvdveld/dot15d4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request thvdveld#6 from thvdveld/coverage
Coverage with codecov.io
- Loading branch information
Showing
1 changed file
with
41 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,34 +10,60 @@ env: | |
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Miri | ||
run: | | ||
rustup toolchain install nightly --component miri | ||
cargo +nightly miri setup | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Run Miri on sync | ||
run: cargo +nightly miri test -p dot15d4 | ||
- name: Format | ||
run: cargo fmt --check --verbose | ||
|
||
|
||
clippy: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Lints | ||
- name: Clippy | ||
run: cargo clippy --all-features --all-targets | ||
- name: Fmt | ||
run: cargo fmt --check --verbose | ||
|
||
cargo-deny: | ||
tests: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
- name: Install Miri | ||
run: | | ||
rustup toolchain install nightly --component miri | ||
cargo +nightly miri setup | ||
- name: Tests | ||
run: cargo test --verbose | ||
- name: Miri | ||
run: cargo +nightly miri test --verbose | ||
|
||
coverage: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install `llvm-cov` | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Coverage | ||
run: | | ||
cargo llvm-cov --no-report | ||
cargo llvm-cov report --lcov --output-path lcov.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: lcov.info | ||
fail_ci_if_error: false | ||
slug: thvdveld/dot15d4 |