mirror of
https://codeberg.org/beerbrawl/beerbrawl.git
synced 2024-09-22 21:20:52 +02:00
chore: ci: add workflow for checking nix flake
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
338fc9a16f
commit
75ff5fdb14
26
.forgejo/workflows/nix-flake.yaml
Normal file
26
.forgejo/workflows/nix-flake.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
name: nix-flake
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
paths:
|
||||
- '**/*.nix'
|
||||
|
||||
env:
|
||||
NIX_CONFIG: 'experimental-features = nix-command flakes'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: nixos-unstable
|
||||
steps:
|
||||
- name: prepare nix container
|
||||
run: nix-env -iA nixpkgs.nodejs
|
||||
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: flake check
|
||||
run: nix flake check -L
|
Loading…
Reference in a new issue