fix: flaky test (#80) #89
This file contains hidden or 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
| on: [push] | |
| name: build | |
| jobs: | |
| check: | |
| name: Rust project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install stable toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Install cargo-tarpaulin | |
| run: cargo install cargo-tarpaulin --locked | |
| - name: Run cargo-tarpaulin | |
| run: cargo tarpaulin --all-features -- --test-threads 1 | |
| - name: Upload to codecov.io | |
| uses: codecov/codecov-action@v1.0.2 | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| - name: Archive code coverage results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: code-coverage-report | |
| path: cobertura.xml |