chore: add formatting job to GitHub Actions

This commit is contained in:
Andre 2025-07-01 11:35:17 -04:00 committed by Jörg Thalheim
parent c26dd9b171
commit fe49c326d5

View file

@ -5,9 +5,16 @@ on:
branches: branches:
- master - master
jobs: jobs:
tests: nixfmt:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31 - uses: cachix/install-nix-action@v31
- run: nix run ./tests#run . - run: nix fmt .
tests:
needs: nixfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- run: nix run ./tests#run .