2024-04-06 11:58:56 +02:00
|
|
|
name: ci
|
2023-07-10 05:48:15 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2024-04-06 11:58:56 +02:00
|
|
|
test:
|
|
|
|
name: nix flake check
|
2023-07-18 16:26:52 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v22
|
|
|
|
- run: nix flake check
|
2024-04-05 22:51:54 +02:00
|
|
|
format:
|
|
|
|
name: nix fmt -- --check **/*.nix
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v22
|
|
|
|
- run: nix fmt -- --check **/*.nix
|
2024-04-06 11:52:55 +02:00
|
|
|
example:
|
|
|
|
name: nix flake check ./example
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v22
|
2024-04-06 20:14:20 +02:00
|
|
|
- run: ln -s hardware/laptop.nix example/hardware-configuration.nix
|
2024-04-06 19:08:25 +02:00
|
|
|
- run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')"
|