mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-10 16:08:45 +01:00
3b82331556
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.
23 lines
449 B
YAML
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
|