From 9ae2f3868c577f1a403245f7e30dab0f3947795d Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 7 Apr 2023 20:47:51 +0300 Subject: [PATCH 1/2] CI: also check for formatting --- .github/workflows/check.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1620a7c..9dc71b3 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,4 +1,4 @@ -name: "Check validity of flakes" +name: "Validate flake & check formatting" on: pull_request: workflow_dispatch: @@ -11,6 +11,7 @@ on: - .gitignore jobs: nix-flake-check: + name: Validate Flake runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -19,3 +20,16 @@ jobs: extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - run: nix flake check + format-with-alejandra: + name: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v18 + with: + install_url: https://nixos.org/nix/install + extra_nix_config: | + auto-optimise-store = true + experimental-features = nix-command flakes + - run: nix run nixpkgs#alejandra -- -c . + From 4f74f67dcf550500046aef7389c96449fbb9babf Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Fri, 7 Apr 2023 20:48:06 +0300 Subject: [PATCH 2/2] dev: this does not need to be here, yet --- modules/projects/default.nix | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 modules/projects/default.nix diff --git a/modules/projects/default.nix b/modules/projects/default.nix deleted file mode 100644 index e69de29..0000000