Skip to content

Commit

Permalink
Add code coverage to CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Eline Jorritsma committed Dec 4, 2023
1 parent cc7b018 commit 396eefc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/cargo-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,24 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test
# target: x86_64-unknown-linux-musl
# override: true
# components: llvm-tools-preview
# - uses: actions-rs/cargo@v1
# with:
# command: build
# args: --release --all-features
- uses: actions-rs/cargo@v1
name: cargo test
with:
command: test
- name: Download grcov
run: |
mkdir -p "${HOME}/.local/bin"
curl -sL https://github.com/mozilla/grcov/releases/download/v0.8.10/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf - -C "${HOME}/.local/bin"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Run xtask coverage
uses: actions-rs/cargo@v1
with:
command: xtask
args: coverage
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ derive-getters = "0.3.0"
hex = "0.4.3"
base64 = "0.21.4"
chrono = "0.4.31"
xtask = "0.1.0"

0 comments on commit 396eefc

Please sign in to comment.