zebra/.github/workflows/coverage.yml

33 lines
749 B
YAML

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
coverage:
name: Coverage
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Skip network tests on Ubuntu
# Ubuntu runners don't have network or DNS configured during test steps
run: echo "ZEBRA_SKIP_NETWORK_TESTS=1" >> $GITHUB_ENV
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: 'latest'
timeout: 600
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1.0.14