-
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 642 Bytes
/
ci.yml
File metadata and controls
31 lines (27 loc) · 642 Bytes
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
name: CI
on:
workflow_dispatch:
inputs: {}
push:
branches: ["main"]
tags: ["v**"]
pull_request:
branches: ["main"]
permissions:
contents: read
# id-token: write
env:
CI_BRANCH_TAG: ${{ github.ref_name }}
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: 7mind/github-env@minimal
- name: Build
run: nix build -L
- name: Build NixOS module
run: nix build -L .#checks.x86_64-linux.nixos-module-build
- name: Build Home Manager module
run: nix build -L ./tests#checks.x86_64-linux.home-module-build
- name: Run tests
run: nix run .#test