Skip to content

Commit

Permalink
ci: rework coverage job
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed May 11, 2024
1 parent 55cf0e0 commit 59ab7ee
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install LLVM Tools
run: rustup component add llvm-tools

- name: Install cargo-llvm-cov and cargo-make
uses: taiki-e/install-action@v2
with:
tool: cargo-llvm-cov,cargo-make
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Rust Cache
uses: Swatinem/[email protected]

- name: Generate coverage
run: cargo make coverage
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json

- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
fail_ci_if_error: true

contract-integration-tests:
Expand Down

0 comments on commit 59ab7ee

Please sign in to comment.