nix-config/.github/workflows/tests.yml
Donovan Glover 3b82331556
ci: Add check for formatting
Note that `nix fmt` is used here to ensure that the formatter for the
flake can be changed in the future without having to change this file.
2024-04-05 16:56:32 -04:00

23 lines
449 B
YAML

name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
nix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix flake check
format:
name: nix fmt -- --check **/*.nix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix fmt -- --check **/*.nix