mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-03 05:33:13 +01:00
2e50a1b3b3
Should make it easier to determine which test is which from a glance.
39 lines
973 B
YAML
39 lines
973 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
check:
|
|
name: nix flake check --no-build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: cachix/install-nix-action@v22
|
|
- run: nix flake check --no-build
|
|
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 examples/hardware-configuration.nix
|
|
- run: nix flake check ./example --no-write-lock-file
|