Skip to content

Commit

Permalink
feat: enable test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin-Yeung committed Nov 18, 2023
1 parent 5caa1aa commit 960b736
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,30 +98,30 @@ jobs:
run: cargo generate-lockfile
- name: cargo test
run: cargo test --locked --all-features --all-targets
# coverage:
# runs-on: ubuntu-latest
# name: ubuntu / stable / coverage
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install stable
# uses: dtolnay/rust-toolchain@stable
# - name: Install tarpaulin
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-tarpaulin
# - name: cargo generate-lockfile
# if: hashFiles('Cargo.lock') == ''
# run: cargo generate-lockfile
# - name: cargo tarpaulin
# run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 -o xml
# - name: upload to coveralls
# uses: coverallsapp/github-action@main
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# file: cobertura.xml
# compare-ref: origin/master
coverage:
runs-on: ubuntu-latest
name: ubuntu / stable / coverage
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install tarpaulin
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
- name: cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: cargo tarpaulin
run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 -o xml
- name: upload to coveralls
uses: coverallsapp/github-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: cobertura.xml
compare-ref: origin/master
typos:
name: Spell Check
runs-on: ubuntu-latest
Expand Down

0 comments on commit 960b736

Please sign in to comment.