2022-12-17 17:46:09 +01:00
|
|
|
name: main
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-flake:
|
2022-12-17 18:01:28 +01:00
|
|
|
name: Nixpkgs Formatting
|
2022-12-17 17:46:09 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Nix
|
|
|
|
uses: cachix/install-nix-action@v18
|
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
2022-12-17 18:01:28 +01:00
|
|
|
|
2022-12-17 17:52:51 +01:00
|
|
|
- run: nix-channel --list
|
|
|
|
- run: nix-channel --add https://nixos.org/channels/nixos-22.11 nixos
|
2022-12-17 17:48:47 +01:00
|
|
|
- run: nix-channel --update
|
2022-12-17 17:57:05 +01:00
|
|
|
- run: nix-channel --list
|
2022-12-17 18:01:28 +01:00
|
|
|
- run: nix shell nixpkgs#nixpkgs-fmt -c nixpkgs-fmt . --check
|
2022-12-17 17:46:35 +01:00
|
|
|
- run: nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check'
|