faking nix-env command for debugging #12
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: Code Coverage | |
on: | |
push: | |
branches: [ "main", "development" ] | |
pull_request: | |
branches: [ "main", "development" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
coverage: | |
name: nps code coverage - latest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v27 | |
- name: Set up nix | |
run: | | |
nix build | |
nix flake check | |
- name: Setting up channels | |
run: | | |
nix-channel --add https://nixos.org/channels/nixos-unstable nixos | |
nix-channel --update | |
- name: Install Rust | |
run: rustup update stable | |
- name: Install cargo-llvm-cov | |
uses: taiki-e/install-action@cargo-llvm-cov | |
- name: Generate code coverage | |
run: RUST_LOG=TRACE cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info -- --ignored | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: lcov.info | |
fail_ci_if_error: true |