infra/.forgejo/workflows/check.yml
teutat3s 68c5639bff
Some checks failed
Flake checks / Check (push) Failing after 33s
wip: cachix actions needs USER env
2023-11-09 03:54:41 +01:00

23 lines
674 B
YAML

name: Flake checks
on: [push]
jobs:
Check:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: https://code.forgejo.org/actions/checkout@v4
- name: Install sudo
run: "apt update && apt install -y sudo"
- name: Install nix
uses: https://github.com/cachix/install-nix-action@v23
- name: Set USER to make cachix happy
run: "export USER=root"
- name: Prepare cachix
uses: https://github.com/cachix/cachix-action@v12
with:
name: pub-solar
- name: Run flake checks
run: |
nix --print-build-logs --verbose --accept-flake-config flake check