Skip to content

Commit

Permalink
Fix the CI failure (#2)
Browse files Browse the repository at this point in the history
* Only need to test build result in the example project.

Signed-off-by: ChenYing Kuo <[email protected]>

* Trigger the CI while updating .github.

Signed-off-by: ChenYing Kuo <[email protected]>

---------

Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary authored Apr 17, 2024
1 parent 6c1de09 commit 97b250d
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
paths:
- "src/**"
- "Cargo.*"
- ".github/**"
workflow_call:
workflow_dispatch:

Expand Down Expand Up @@ -52,42 +53,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: |
cargo install cargo-tarpaulin
- name: Show toolchain information
working-directory: ${{github.workspace}}
run: |
rustup toolchain list
cargo --version
- name: Run tests and report code coverage
- name: Build the binary examples
working-directory: ${{github.workspace}}
run: |
# enable nightly features so that we can also include Doctests
RUSTC_BOOTSTRAP=1 cargo tarpaulin -o xml -o lcov -o html --doc --tests
- name: Upload coverage report (xml)
uses: actions/upload-artifact@v4
with:
name: Test Coverage Results (xml)
path: cobertura.xml

- name: Upload coberage report (lcov)
uses: actions/upload-artifact@v4
with:
name: Test Coverage Results (lcov)
path: lcov.info

- name: Upload coberage report (html)
uses: actions/upload-artifact@v4
with:
name: Test Coverage Results (html)
path: tarpaulin-report.html

# - name: Upload coverage report
# uses: actions/upload-artifact@v4
# with:
# name: Code coverage report
# path: cobertura.xml
cargo build
build-docs:
name: Build documentation
Expand Down

0 comments on commit 97b250d

Please sign in to comment.