Add error handling for ip-ban responses #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |