nix-config/.github/workflows/ci.yml
Donovan Glover dbe8b25eed
ci: Check without build for now
Should fix an issue where the ci was running out of space.
2024-04-29 17:46:19 -04:00

33 lines
896 B
YAML

name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: nix flake check --no-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: nix flake check --no-build
format:
name: nix fmt -- --check **/*.nix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: nix fmt -- --check **/*.nix
example:
name: nix flake check ./example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26
- run: cp ./hardware/laptop.nix ./example/hardware-configuration.nix
- run: git add .
- run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')?shallow=1"