Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Adds code coverage

Adds code coverage #2

Workflow file for this run

name: citarp
env:
CARGO_TERM_COLOR: always
SQLX_OFFLINE: true
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: citarp
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- uses: actions/checkout@v2
# Start Docker Compose
- name: Start Docker Compose
run: docker-compose up -d
- name: Checkout repository
uses: actions/checkout@v2
- 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