-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (36 loc) · 1.09 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: test
on:
push:
pull_request:
schedule:
- cron: '0 16 * * *' # UTC 16:00 daily
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: re-enable aarch64-linux once github has native runner
# https://github.com/orgs/community/discussions/19197
system: [x86_64-linux]
version:
- nixpkgs: nixos-24.11
home-manager: release-24.11
- nixpkgs: nixos-unstable
home-manager: master
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:${{ matrix.version.nixpkgs }}
- run: >
nix flake check
--keep-going
--all-systems
--override-input quadlet-nix "path:$(pwd)"
--override-input nixpkgs 'github:NixOS/nixpkgs/${{ matrix.version.nixpkgs }}'
--override-input home-manager 'github:nix-community/home-manager/${{ matrix.version.home-manager }}'
--override-input test-config "path:$(pwd)/tests/${{ matrix.system }}"
./tests