feat: set process as last argument in all commands (related to #18) #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate coverage | |
on: | |
push: | |
branches: ["main"] | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
branches: ["main"] | |
paths-ignore: | |
- "**.md" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update Rust | |
run: rustup update stable | |
- name: Install Tarpaulin | |
run: cargo install cargo-tarpaulin | |
- name: | |
run: cargo build --verbose --locked | |
- name: Generate code coverage | |
run: cargo tarpaulin --out xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
- name: Install cargo2junit | |
run: cargo install cargo2junit | |
- name: Generaete junit test file | |
run: RUSTC_BOOTSTRAP=1 cargo test -- -Z unstable-options --format json --report-time | cargo2junit > junit.xml | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |