Skip to content

Commit

Permalink
feat: Setup Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Jul 18, 2024
1 parent 3eecea6 commit 2dfe9ef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/flake-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Flake check
on:
pull_request:
push:
branches: [main]
jobs:
build:
name: Check flake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v3
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check for dead code
run: git ls-files '*.nix' | nix run nixpkgs#deadnix
- name: Check for lints
run: nix run nixpkgs#statix -- check

0 comments on commit 2dfe9ef

Please sign in to comment.