mirror of
https://github.com/poem-web/poem.git
synced 2026-01-25 12:28:24 +00:00
40 lines
939 B
YAML
40 lines
939 B
YAML
name: Code Coverage
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
cover:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
redis:
|
|
image: redis:5.0.7
|
|
ports:
|
|
- 6379:6379
|
|
options: --entrypoint redis-server
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install stable toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: 1.56.1
|
|
override: true
|
|
components: rustfmt
|
|
- name: Cache Rust
|
|
uses: Swatinem/rust-cache@v1
|
|
- name: Run cargo-tarpaulin
|
|
uses: actions-rs/tarpaulin@v0.1
|
|
with:
|
|
version: '0.18.0'
|
|
- name: Upload to codecov.io
|
|
uses: codecov/codecov-action@v1.0.2
|
|
with:
|
|
token: ${{secrets.CODECOV_TOKEN}}
|
|
- name: Archive code coverage results
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: code-coverage-report
|
|
path: cobertura.xml
|