2023-04-07 19:47:51 +02:00
|
|
|
name: "Validate flake & check formatting"
|
2023-02-01 20:11:37 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
2023-02-06 20:02:44 +01:00
|
|
|
workflow_dispatch:
|
2023-02-01 20:11:37 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-02-16 20:13:16 +01:00
|
|
|
paths-ignore:
|
|
|
|
- .github/**
|
|
|
|
- assets/**
|
|
|
|
- .gitignore
|
2023-02-01 20:11:37 +01:00
|
|
|
jobs:
|
|
|
|
nix-flake-check:
|
2023-04-07 19:47:51 +02:00
|
|
|
name: Validate Flake
|
2023-02-01 20:11:37 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-20 11:24:24 +02: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 07:19:27 +02:00
|
|
|
|
2023-04-07 19:47:51 +02:00
|
|
|
format-with-alejandra:
|
2023-04-08 01:32:47 +02:00
|
|
|
name: Formatting via Alejandra
|
2023-04-07 19:47:51 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-07-24 07:19:27 +02:00
|
|
|
steps:
|
2023-10-20 11:24:24 +02: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 19:47:51 +02:00
|
|
|
- run: nix run nixpkgs#alejandra -- -c .
|