Skip to content

Commit

Permalink
fix: comment code coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed May 27, 2024
1 parent 0a69bfd commit 316b2a9
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,37 +47,37 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

coverage:
needs: build
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive

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

- uses: actions-rs/cargo@v1
name: Run test with code coverage report
with:
command: test
args: --workspace --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'

- id: coverage
name: Collect code coverage
uses: actions-rs/grcov@v0.1

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: ${{ steps.coverage.outputs.report }}
# coverage:
# needs: build
# runs-on: ubuntu-latest
# if: github.ref != 'refs/heads/main'
# steps:
# - name: Clone repo
# uses: actions/checkout@v4
# with:
# submodules: recursive
#
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
#
# - uses: actions-rs/cargo@v1
# name: Run test with code coverage report
# with:
# command: test
# args: --workspace --all-features --no-fail-fast
# env:
# CARGO_INCREMENTAL: '0'
# RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
# RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
#
# - id: coverage
# name: Collect code coverage
# uses: actions-rs/grcov@v0.1
#
# - name: Archive code coverage results
# uses: actions/upload-artifact@v4
# with:
# name: code-coverage-report
# path: ${{ steps.coverage.outputs.report }}

0 comments on commit 316b2a9

Please sign in to comment.