2022-02-03 22:53:27 +00:00
|
|
|
# name: Coverage
|
2021-11-22 23:42:47 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# on:
|
|
|
|
# push:
|
|
|
|
# branches: [master]
|
2021-11-22 23:42:47 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# jobs:
|
|
|
|
# coverage:
|
|
|
|
# runs-on: ubuntu-latest
|
2021-11-22 23:58:31 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# services:
|
|
|
|
# redis:
|
|
|
|
# image: redis:5.0.7
|
|
|
|
# ports:
|
|
|
|
# - 6379:6379
|
|
|
|
# options: --entrypoint redis-server
|
2021-11-22 23:58:31 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v2
|
2021-11-22 23:42:47 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# - name: Install stable
|
|
|
|
# uses: actions-rs/toolchain@v1
|
|
|
|
# with:
|
|
|
|
# toolchain: stable-x86_64-unknown-linux-gnu
|
|
|
|
# profile: minimal
|
|
|
|
# override: true
|
2021-11-22 23:42:47 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# - name: Generate Cargo.lock
|
|
|
|
# uses: actions-rs/cargo@v1
|
|
|
|
# with: { command: generate-lockfile }
|
|
|
|
# - name: Cache Dependencies
|
|
|
|
# uses: Swatinem/rust-cache@v1.2.0
|
2021-11-22 23:42:47 +00:00
|
|
|
|
2022-02-03 22:53:27 +00:00
|
|
|
# - name: Generate coverage file
|
|
|
|
# run: |
|
|
|
|
# cargo install cargo-tarpaulin --vers "^0.13"
|
|
|
|
# cargo tarpaulin --workspace --out Xml --verbose
|
|
|
|
# - name: Upload to Codecov
|
|
|
|
# uses: codecov/codecov-action@v1
|
|
|
|
# with: { file: cobertura.xml }
|