Skip to content

Commit

Permalink
fix(ci): Re-enable coverage via Coverals with tarpaulin (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonv authored Sep 8, 2024
1 parent 465de7f commit 873795b
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# name: Coverage
#
# on:
# pull_request:
# push:
# branches:
# - master
#
# concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-coverage
# cancel-in-progress: true
#
# jobs:
# test:
# name: coverage
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
# with:
# components: llvm-tools-preview
# - name: Install Protoc
# uses: arduino/setup-protoc@v3
# - name: Cache Cargo dependencies
# uses: Swatinem/rust-cache@v2
# - name: Install cargo-llvm-cov
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-tarpaulin
# - name: Generate code coverage
# run: |
# cargo tarpaulin --verbose --all-features --tests --timeout 1200 --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}
#
# # - name: Coveralls
# # uses: coverallsapp/github-action@v2
name: Coverage

on:
pull_request:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-coverage
cancel-in-progress: true

jobs:
test:
name: coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: llvm-tools-preview
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --workspace --all-features --tests --timeout 1200 --coveralls ${{ secrets.COVERALLS_REPO_TOKEN }}
# - name: Coveralls
# uses: coverallsapp/github-action@v2

0 comments on commit 873795b

Please sign in to comment.