2024-04-01 20:34:37 +01:00
|
|
|
name: flake
|
|
|
|
|
2024-04-07 16:18:03 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '**'
|
|
|
|
tags-ignore:
|
|
|
|
- '**'
|
2024-04-01 20:34:37 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
flake:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-06-14 00:01:06 +01:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2024-04-01 20:34:37 +01:00
|
|
|
- name: Prepare for Nix installation
|
|
|
|
run: |
|
|
|
|
apt-get update
|
|
|
|
apt-get install -y sudo
|
2024-05-17 00:01:13 +01:00
|
|
|
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
|
2024-04-01 20:34:37 +01:00
|
|
|
- name: lint
|
2024-04-22 22:31:10 +01:00
|
|
|
run: |
|
|
|
|
nix fmt
|
|
|
|
git diff --exit-code
|
2024-04-01 20:34:37 +01:00
|
|
|
- name: flake check
|
|
|
|
run: nix flake check --all-systems
|
|
|
|
timeout-minutes: 10
|