mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 15:34:13 +01:00
41 lines
893 B
YAML
41 lines
893 B
YAML
name: Nix Flake Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "scripts/**"
|
|
- "**.md"
|
|
- "**.nu"
|
|
- 'Justfile'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- "scripts/**"
|
|
- "**.md"
|
|
- "**.nu"
|
|
- 'Justfile'
|
|
|
|
jobs:
|
|
checks:
|
|
name: Check expressions
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v24
|
|
with:
|
|
install_url: https://nixos.org/nix/install
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
experimental-features = nix-command flakes
|
|
|
|
- name: Run Nix Flake Unit Tests
|
|
run: |
|
|
echo 'Flake Unit Tests'
|
|
nix eval .#unitTests --show-trace --print-build-logs --verbose
|