diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..188952c6 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,23 @@ +name: Nix CI + +on: + push: + pull_request: + +jobs: + nix: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Nix + uses: cachix/install-nix-action@v20 + with: + install_url: https://nixos.org/nix/install + + - name: Run nixfmt + run: | + nix-env -iA nixfmt + nixfmt --check .