summaryrefslogtreecommitdiff
path: root/.github/workflows/check.yaml
blob: e8f354fc0217785df7d7b44d04824768d5db8b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: run checks

on:
  push:
    branches:
      - main
  pull_request:
  workflow_dispatch:


jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - uses: DeterminateSystems/nix-installer-action@main
      - uses: DeterminateSystems/magic-nix-cache-action@main

      - name: stylua
        run:
          nix build -L .#checks.x86_64-linux.stylua

      - name: flake check
        run: nix flake check --accept-flake-config