document a classical nix setup #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
diagnostic-endpoint: "" | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
with: | |
diagnostic-endpoint: "" | |
- name: "Check evaluation" | |
run: nix flake check --no-build --all-systems | |
- name: "Run unit-tests" | |
run: nix run github:nix-community/nix-unit -- --flake .#tests | |
- name: "Do linting" | |
run: nix run nixpkgs#statix -- check . | |
- name: "Check formatting" | |
run: nix fmt -- --fail-on-change | |
- name: "Try building docs" | |
run: nix build .#docs | |
- name: "Try building example" | |
run: nix build --override-input nixos-dns $(pwd)/ ./example#octodns | |
- name: "Check zonefile with bind" | |
run: nix build --override-input nixos-dns $(pwd)/ ./example#zoneFiles && nix shell nixpkgs#bind --command named-checkzone example.com result/example.com |