Skip to content

Commit

Permalink
workflows/check: Init
Browse files Browse the repository at this point in the history
  • Loading branch information
peterablehmann committed Feb 18, 2024
1 parent c1e2130 commit 1751d65
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: check

on:
push:
pull_request:

permissions: read-all

jobs:
Check:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Nix
uses: DeterminateSystems/nix-installer-action@main
with:
diagnostic-endpoint: ""
- name: Setup Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: "Run flake checks"
run: nix flake check --all-systems
Lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Nix
uses: DeterminateSystems/nix-installer-action@main
with:
diagnostic-endpoint: ""

- name: Check format
run: nix fmt -- --check .
- name: Lint using Statix
run: nix run nixpkgs#statix -- check .

0 comments on commit 1751d65

Please sign in to comment.