just run nix flake check in the action
Flake Check / flake-check (pull_request) Successful in 1m16s Details
Flake Check / flake-check (push) Successful in 50s Details

pull/61/head
Tudor Roman 2024-01-30 10:46:13 +01:00
parent 5fa7e17584
commit cda9b8b229
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
2 changed files with 14 additions and 19 deletions

View File

@ -0,0 +1,14 @@
name: Flake Check
on:
pull_request:
push:
branches: [master]
jobs:
flake-check:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Run flake check
run: nix flake check -L --show-trace

View File

@ -1,19 +0,0 @@
name: pre-commit
env:
RUNNER_ARCH: X64
on:
pull_request:
push:
branches: [master]
jobs:
pre-commit:
runs-on: nix
steps:
- uses: actions/checkout@v3
- name: Build shell
run: nix build .#devShells.x86_64-linux.default --no-link -L
- name: Run pre-commit hooks on all files
run: nix develop -L -c pre-commit run -a