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

24 lines
708 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"
run: |
git clone https://git.kb-one.de/kb01/aux-config
cd aux-config
2024-09-17 20:19:55 +02:00
ls -la
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'