Skip to content

Commit

Permalink
Merge pull request #2 from MidasLamb/feature/replace-coverage
Browse files Browse the repository at this point in the history
Replaced coverall by codecov.io
  • Loading branch information
MidasLamb authored Sep 25, 2021
2 parents ac37793 + 132d597 commit affc715
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 66 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches:
- master
pull_request:
branches:
- master

name: Code coverage with grcov

jobs:
grcov:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

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

- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: "0.15.0"
args: "-- --test-threads 1"

- name: Upload to codecov.io
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}

- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml
66 changes: 0 additions & 66 deletions .github/workflows/grcov.yml

This file was deleted.

0 comments on commit affc715

Please sign in to comment.