Skip to content

Switch to using HTTPS #61

Switch to using HTTPS

Switch to using HTTPS #61

Workflow file for this run

name: coverage
# Runs tests with coverage and reports the results
on:
pull_request:
push:
branches:
- master
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: llvm-tools-preview
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
env:
RUST_BACKTRACE: 1
RUSTFLAGS: -Cinstrument-coverage
- name: Install grcov
uses: actions-rs/cargo@v1
with:
command: install
args: grcov
- name: Generate coverage report
run: grcov . -s . --binary-path ./target/debug/ -t lcov --ignore-not-existing -o ./target/debug/coverage.lcov --keep-only "src/*"
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
files: ./target/debug/coverage.lcov