Initial workspace setup #1
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: Code Coverage | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "plugins/*/crates/**/*.rs" | |
- "plugins/**/crates/**/Cargo.toml" | |
- "Cargo.toml" | |
- ".github/workflows/coverage.yml" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "plugins/*/crates/**/*.rs" | |
- "plugins/**/crates/**/Cargo.toml" | |
- "Cargo.toml" | |
- ".github/workflows/coverage.yml" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
codecov-tarpaulin: | |
name: Generate code coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: VCS Checkout | |
uses: actions/checkout@v3 | |
- name: Install latest nightly | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Run cargo-tarpaulin | |
uses: actions-rs/[email protected] | |
with: | |
version: '0.22.0' | |
args: --all-features | |
# Note: closed-source code needs to provide a token, | |
# but open source code does not. | |
- name: Upload to codecov.io | |
uses: codecov/[email protected] | |
with: | |
verbose: true | |
fail_ci_if_error: true |