mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-08 09:00:22 +09:00
07b3a8ebd3
Swap nix-quick-install-action -> nix-installer-action and cache-nix-action -> Mic92/hestia/action across every Nix workflow, drop the now-unneeded cache keys, and run devShell tooling through a defaults.run.shell. Add gc.yml to trim the hestia cache daily.
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: NixOS Module Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
nix-module-check:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
|
with:
|
|
filters: |
|
|
nix:
|
|
- 'nix/**'
|
|
- 'flake.nix'
|
|
- 'flake.lock'
|
|
go:
|
|
- 'go.*'
|
|
- '**/*.go'
|
|
- 'cmd/**'
|
|
- 'hscontrol/**'
|
|
|
|
- uses: NixOS/nix-installer-action@6b8548fe06acfb0155a50ab5d561accb215764cc # main
|
|
if: steps.changed-files.outputs.nix == 'true' || steps.changed-files.outputs.go == 'true'
|
|
|
|
- uses: Mic92/hestia/action@ff07bb902a9968ac0c3d0e51d90a606662a375d8 # main
|
|
if: steps.changed-files.outputs.nix == 'true' || steps.changed-files.outputs.go == 'true'
|
|
|
|
- name: Run NixOS module tests
|
|
if: steps.changed-files.outputs.nix == 'true' || steps.changed-files.outputs.go == 'true'
|
|
run: |
|
|
echo "Running NixOS module integration test..."
|
|
nix build .#checks.x86_64-linux.headscale -L --fallback
|