Skip to content

adding test actions

adding test actions #1

Workflow file for this run

name: "Test CI"
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the project
run: nix-shell --run "cargo build --release --verbose"
- name: Run lint
run: nix-shell --run "cargo clippy --verbose"
- name: Run tests
run: nix-shell --run "cargo test --verbose"
- name: Build nix package
run: nix build .