dotfiles/.gitea/workflows/build.yaml

25 lines
660 B
YAML
Raw Normal View History

2023-06-03 10:48:41 +01:00
name: use nix
on: push
env:
DEV_SHELL_NAME: CI
2023-06-02 12:22:44 +01:00
jobs:
2023-06-03 10:48:41 +01:00
build:
2023-07-01 09:21:40 +01:00
runs-on: node-latest
2023-06-03 10:48:41 +01:00
steps:
2023-07-01 09:00:59 +01:00
- name: Install dependencies
run: |
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \
--extra-conf "sandbox = false" \
--init none \
--no-confirm
2023-06-27 07:23:21 +01:00
- uses: actions/checkout@v3
2023-07-01 09:47:43 +01:00
- name: Check Nix flake inputs
uses: https://github.com/DeterminateSystems/flake-checker-action@v4
2023-06-27 07:23:21 +01:00
- name: Check
run: |
2023-06-03 10:48:41 +01:00
nix flake metadata
nix flake check
2023-06-27 07:23:21 +01:00
nix --no-sandbox develop -c statix check
2023-07-01 09:47:43 +01:00