Skip to content

Replace lazy_static with LazyLock #75

Replace lazy_static with LazyLock

Replace lazy_static with LazyLock #75

Workflow file for this run

name: Build & Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --features all
coverage:
name: Coverage
strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run xtask coverage
run: nix develop .#coverage --impure --command cargo xtask coverage
- name: Upload to codecov.io
uses: codecov/[email protected]
with:
files: coverage/*.lcov
token: ${{ secrets.CODECOV_TOKEN }}