Skip to content

Add soft error detection #56

Add soft error detection

Add soft error detection #56

Workflow file for this run

on: [push, pull_request]
name: Build
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Run cargo check
run: cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run unit tests (nextest)
env:
CARGO_TERM_COLOR: always
run: |
cargo nextest run --profile ci
- name: Report unit test results
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
path: target/nextest/ci/*.xml
reporter: java-junit
max-annotations: 50
name: Unit Tests
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Run cargo fmt
run: cargo fmt --all -- --check
- uses: clechasseur/rs-clippy-check@v2
with:
args: --all-features -- -D warnings
coverage:
name: Code coverage
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: rustup update stable
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
- name: Generate code coverage
run: cargo llvm-cov nextest --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: lcov.info
# this is needed by zgosalvez/github-actions-report-lcov
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: lcov.info
artifact-name: code-coverage-report
update-comment: true