diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index eac4254..9e44716 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -88,26 +88,15 @@ jobs: command: build args: --all-features - - name: Run unit tests - if: always() - uses: actions-rs/cargo@v1 + - name: Calculate test coverage + uses: actions-rs/tarpaulin@v0.1 + if: matrix.os == 'ubuntu-latest' with: - command: test - args: --lib --all-features + args: --all-features --tests --doc --ignore-tests - - name: Run integration tests - if: always() - uses: actions-rs/cargo@v1 - with: - command: test - args: --test cli - - - name: Run doc tests - if: always() - uses: actions-rs/cargo@v1 - with: - command: test - args: --doc --all-features + - name: Upload to codecov.io + if: matrix.os == 'ubuntu-latest' + uses: codecov/codecov-action@v1 publish: name: Publish