-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Re-enable coverage via Coverals with tarpaulin (#280)
- Loading branch information
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |