Bump codecov/codecov-action from 3 to 4 #410
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: Squire Coverage | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main, development ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: nightly | |
components: rustfmt | |
targets: wasm32-unknown-unknown | |
- name: Fetch Trunk | |
uses: jetli/[email protected] | |
with: | |
version: 'latest' | |
- name: Fetch Tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
crate: cargo-tarpaulin | |
version: 'latest' | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: '6.0' | |
- name: Generate code coverage | |
run: | | |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v4 |