This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
Adds code coverage #3
Workflow file for this run
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: citarp | |
env: | |
CARGO_TERM_COLOR: always | |
SQLX_OFFLINE: true | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
citarp: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Start Docker Compose | |
- name: Start Docker Compose | |
run: docker-compose up -d | |
- name: Generate code coverage | |
run: | | |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml | |
- name: Upload to codecov.io | |
uses: codecov/codecov-action@v2 | |
with: | |
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos | |
fail_ci_if_error: true |