Bump codecov/codecov-action from 3.1.1 to 3.1.5 #481
Workflow file for this run
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: CI checks | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test on ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
name: [linux, windows, macos] | |
include: | |
- name: linux | |
os: ubuntu-latest | |
build_deps: > | |
libpcsclite-dev | |
- name: windows | |
os: windows-latest | |
- name: macos | |
os: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install build dependencies | |
run: sudo apt install ${{ matrix.build_deps }} | |
if: matrix.build_deps != '' | |
- uses: dtolnay/rust-toolchain@stable | |
id: stable-toolchain | |
- name: Install test dependencies using latest stable Rust | |
run: cargo +${{steps.stable-toolchain.outputs.name}} install rage | |
- name: Run tests | |
run: cargo test | |
- name: Verify working directory is clean | |
run: git diff --exit-code | |
codecov: | |
name: Code coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install build dependencies | |
run: sudo apt install libpcsclite-dev | |
- name: Install coverage dependencies | |
run: cargo install cargo-tarpaulin | |
- name: Generate coverage report | |
run: cargo tarpaulin --engine llvm --all-features --release --timeout 600 --out Xml | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
doc-links: | |
name: Intra-doc links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install build dependencies | |
run: sudo apt install libpcsclite-dev | |
- run: cargo fetch | |
# Requires #![deny(rustdoc::broken_intra_doc_links)] in crates. | |
- name: Check intra-doc links | |
run: cargo doc --document-private-items | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check formatting | |
run: cargo fmt -- --check |