Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
Update coverage workflow's toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Feb 28, 2024
1 parent f81fd18 commit ff9b035
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,25 @@ jobs:
codecov:
name: Code coverage
runs-on: ubuntu-latest
container:
# See https://github.com/xd009642/tarpaulin/issues/1282 for usage of older nightly revision
image: xd009642/tarpaulin:develop-nightly-2024-02-1
options: --security-opt seccomp=unconfined

timeout-minutes: 30
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
steps:
- uses: actions/checkout@v3
- name: Checkout sources
uses: actions/checkout@v4

- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-02-01
components: tarpaulin

- name: Set up rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- run: |
cargo tarpaulin --verbose --engine llvm --release --out Xml
- name: Run cargo fmt
run: cargo tarpaulin --verbose --engine llvm --release --out Xml

- name: Upload coverage to Codecov
uses: codecov/[email protected]
Expand Down

0 comments on commit ff9b035

Please sign in to comment.