diff options
Diffstat (limited to '.github/workflows/check.yaml')
| -rw-r--r-- | .github/workflows/check.yaml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..e8f354f --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,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 |
