mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 22:40:57 -05:00
26 lines
697 B
YAML
26 lines
697 B
YAML
name: "Test template"
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
push:
|
|
paths:
|
|
- 'templates/n/flake.lock'
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
tests:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: wimpysworld/nothing-but-nix@main
|
|
with:
|
|
hatchet-protocol: 'carve'
|
|
- uses: cachix/install-nix-action@v31
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
- run: nix build ./templates/n
|
|
- run: nix flake check ./templates/n
|