-
Notifications
You must be signed in to change notification settings - Fork 34
23 lines (23 loc) · 843 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: "Test Nix build"
on:
pull_request:
push:
jobs:
test-nixos-2205:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
- run: NIX_PATH=channel:nixos-22.05 nix-shell --run "mkdir tmp && python generate.py -l DEBUG -c conf.yaml tmp"
test-nixos-unstable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
- run: NIX_PATH=channel:nixos-unstable nix-shell --run "mkdir tmp && python generate.py -l DEBUG -c conf.yaml tmp"
verify-sorted:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
- run: NIX_PATH=channel:nixos-22.05 nix-shell --packages yq-go --run "diff conf.yaml <(yq eval 'sortKeys(..)' conf.yaml)"