Skip to content

Commit

Permalink
Revert "disabled coverage CI test (#5)"
Browse files Browse the repository at this point in the history
This reverts commit 1d943ae.
  • Loading branch information
yorik committed Oct 13, 2023
1 parent fdd34e7 commit 9968449
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: coverage

on:
pull_request:
branches: [ "*" ]

jobs:
check:
name: Rust project
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./node

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: '--manifest-path node/Cargo.toml -- --test-threads 1'
env:
RUST_LOG: 'network=trace,sync_blocks=trace,consensus=trace'

- 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
17 changes: 17 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
coverage:
range: "10...90"
status:
# We might gate PRs based on coverage diffs,
# but we don't want that for now
project:
default:
informational: true
patch:
default:
informational: true

comment:
require_changes: true

github_checks:
annotations: false

0 comments on commit 9968449

Please sign in to comment.