aux-config/.github/workflows/build.yml

24 lines
766 B
YAML
Raw Normal View History

on: [push, pull_request, workflow_dispatch]
jobs:
build-HyperC:
runs-on: docker
container:
2024-09-17 19:44:20 +02:00
image: ghcr.io/lix-project/lix:latest
name: "Check NixOS Configuration"
steps:
2024-09-17 20:07:25 +02:00
- name: "Git Clone"
2024-09-17 20:21:37 +02:00
run: git clone https://git.kb-one.de/kb01/aux-config .
2024-09-17 19:44:20 +02:00
2024-09-17 21:04:47 +02:00
- name: "Nix Flake Update"
run: nix flake update --experimental-features 'nix-command flakes'
2024-09-17 19:44:20 +02:00
- name: "Check evaluation"
2024-09-17 20:17:52 +02:00
run: nix flake check --no-build --all-systems --experimental-features 'nix-command flakes'
2024-09-17 19:44:20 +02:00
- name: "Do linting"
2024-09-17 20:17:52 +02:00
run: nix run nixpkgs#statix -- check . --experimental-features 'nix-command flakes'
2024-09-17 19:44:20 +02:00
- name: "Check formatting"
2024-09-17 20:17:52 +02:00
run: nix fmt -- --fail-on-change --experimental-features 'nix-command flakes'