Skip to content

Commit

Permalink
Fix tests (#11)
Browse files Browse the repository at this point in the history
* fix: tests

* fix test

* fix build
  • Loading branch information
tuyentv96 authored Aug 29, 2024
1 parent a31d409 commit fde8499
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,29 @@ jobs:
command: build
args: --all-features

- name: Install cargo-tarpaulin
uses: actions-rs/install@v0.1
with:
crate: cargo-tarpaulin
version: latest
use-tool-cache: true

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features
args: --all --features all

- name: Coverage Report with tarpaulin
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --all --verbose --all-features --out Lcov -- --test-threads 1

- name: Upload to CodeCov
uses: codecov/codecov-action@v4
with:
# required for private repositories:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./lcov.info
fail_ci_if_error: true

0 comments on commit fde8499

Please sign in to comment.