nvf/.github/workflows/check.yml

39 lines
891 B
YAML
Raw Normal View History

2023-04-07 17:47:51 +00:00
name: "Validate flake & check formatting"
on:
pull_request:
2023-02-06 19:02:44 +00:00
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- .github/**
- assets/**
- .gitignore
jobs:
nix-flake-check:
2023-04-07 17:47:51 +00:00
name: Validate Flake
runs-on: ubuntu-latest
steps:
2023-10-20 09:24:24 +00:00
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check Flake
run: nix flake check
2023-07-24 05:19:27 +00:00
2023-04-07 17:47:51 +00:00
format-with-alejandra:
2023-04-07 23:32:47 +00:00
name: Formatting via Alejandra
2023-04-07 17:47:51 +00:00
runs-on: ubuntu-latest
2023-07-24 05:19:27 +00:00
steps:
2023-10-20 09:24:24 +00:00
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
2023-04-07 17:47:51 +00:00
- run: nix run nixpkgs#alejandra -- -c .