mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
cea9bf43bb
Weird that this doesn't work but the full check does however I'm not complaining.
32 lines
840 B
YAML
32 lines
840 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
test:
|
|
name: nix flake check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
- run: nix flake check
|
|
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
|
|
example:
|
|
name: nix flake check ./example
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
- run: ln -s hardware/laptop.nix example/hardware-configuration.nix
|
|
- run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')"
|