Skip to content

Commit

Permalink
chore(actions): add coverage and use cargo miri nextest run
Browse files Browse the repository at this point in the history
  • Loading branch information
jbr committed Mar 25, 2024
1 parent 2c13b95 commit 5d333f7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ jobs:
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Test with Miri
run: cargo miri test
run: cargo miri nextest run
30 changes: 30 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Coverage

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build_rust:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Collect coverage data
run: cargo llvm-cov nextest --codecov --output-path codecov.json
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
slug: jbr/stopper

0 comments on commit 5d333f7

Please sign in to comment.