-
-
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 #10 from sebastienrousseau/feat/html-generator
v0.0.2
- Loading branch information
Showing
121 changed files
with
11,173 additions
and
1,480 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 |
---|---|---|
@@ -1,61 +1,32 @@ | ||
name: 📶 Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
on: [push] | ||
|
||
jobs: | ||
coverage: | ||
name: Code Coverage | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_INCREMENTAL: "0" | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" | ||
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests" | ||
|
||
steps: | ||
# Checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Setup Rust nightly | ||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
id: toolchain | ||
with: | ||
toolchain: nightly | ||
toolchain: stable | ||
override: true | ||
|
||
# Configure cache for Cargo | ||
- name: Cache Cargo registry, index | ||
uses: actions/cache@v4 | ||
id: cache-cargo | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/bin | ||
~/.cargo/git | ||
key: linux-${{ steps.toolchain.outputs.rustc_hash }}-rust-cov-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
# Run tests with all features | ||
- name: Test (cargo test) | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: "--workspace" | ||
- name: Install Cargo Tarpaulin | ||
run: cargo install cargo-tarpaulin | ||
|
||
# Install grcov | ||
- uses: actions-rs/[email protected] | ||
id: coverage | ||
- name: Run tests with coverage | ||
run: cargo tarpaulin --out Lcov --all-features --no-fail-fast | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: '-Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off' | ||
RUSTDOCFLAGS: '' | ||
|
||
# Upload to Codecov.io | ||
- name: Upload to Codecov.io | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ${{ steps.coverage.outputs.report }} | ||
files: lcov.info |
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
Oops, something went wrong.