Skip to content

build(deps): Bump the rust-dependencies group across 1 directory with 9 updates #221

build(deps): Bump the rust-dependencies group across 1 directory with 9 updates

build(deps): Bump the rust-dependencies group across 1 directory with 9 updates #221

Workflow file for this run

name: "Rust CI"
on:
push:
branches:
- main
pull_request:
jobs:
lint:
uses: darbiadev/.github/.github/workflows/rust-lint.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
clippy:
needs: lint
uses: darbiadev/.github/.github/workflows/rust-clippy.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
test:
needs: clippy
strategy:
matrix:
triple:
- { os: "ubuntu-latest", target: "x86_64-unknown-linux-gnu" }
uses: darbiadev/.github/.github/workflows/rust-test.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
with:
os: ${{ matrix.triple.os }}
target: ${{ matrix.triple.target }}
docs:
permissions:
contents: read
pages: write
id-token: write
uses: darbiadev/.github/.github/workflows/github-pages-rust-doc.yaml@ea97d99e1520c46080c4c9032a69552e491474ac # v13.0.0
coverage:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: "Cache Rust and project dependencies"
id: cache
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ hashFiles('Cargo.lock') }}
- name: "Install grcov"
if: steps.cache.outputs.cache-hit != 'true'
run: cargo install grcov
- name: "Run tests"
run: cargo test --no-fail-fast
env:
RUSTFLAGS: "-Cinstrument-coverage"
LLVM_PROFILE_FILE: "selene-%p-%m.profraw"
- name: "Generate coverage data"
run: |
grcov . -s . --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- name: "Upload coverage reports to Codecov"
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}