2020-09-01 13:47:34 -07:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
name: Coverage
|
2020-10-12 15:19:55 -07:00
|
|
|
timeout-minutes: 30
|
2020-09-01 13:47:34 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
2020-10-18 21:03:24 -07:00
|
|
|
- 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
|
2020-09-01 13:47:34 -07:00
|
|
|
- name: Run cargo-tarpaulin
|
|
|
|
uses: actions-rs/tarpaulin@v0.1
|
|
|
|
with:
|
2020-11-11 18:23:58 -08:00
|
|
|
version: '0.16.0'
|
2020-09-01 13:47:34 -07:00
|
|
|
timeout: 600
|
|
|
|
- name: Upload coverage report to Codecov
|
2020-11-17 02:00:42 -08:00
|
|
|
uses: codecov/codecov-action@v1.0.15
|