e0b944a524
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.1 to 3.1.5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3.1.1...v3.1.5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
71 lines
1.9 KiB
YAML
71 lines
1.9 KiB
YAML
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/codecov-action@v3.1.5
|
|
|
|
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
|