Skip to content

Commit

Permalink
feat: replace grcov with tarpaulin for test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Mar 23, 2020
1 parent 00cb85a commit 27b4fce
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: true

Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- { os: "windows-2016", toolchain: "stable"}
- { os: "macOS-latest", toolchain: "stable"}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: true

Expand All @@ -71,7 +71,7 @@ jobs:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: true

Expand All @@ -98,43 +98,25 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

grcov:
runs-on: ${{ matrix.os }}
tarpaulin:
runs-on: ubuntu-latest
needs: check
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-2016

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: true

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
override: true

- name: Install LLVM
uses: ./.github/actions/install-llvm

- name: Execute tests
uses: actions-rs/cargo@v1
continue-on-error: true
with:
command: test
args: --all
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"

- name: Gather coverage data
id: coverage
uses: actions-rs/[email protected]
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]

- uses: codecov/codecov-action@v1
with:
Expand Down Expand Up @@ -165,7 +147,7 @@ jobs:
artifacts: "mun libmun_runtime.dylib"
}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: true

Expand Down

0 comments on commit 27b4fce

Please sign in to comment.