diff --git a/.gitea/workflows/nix.yaml b/.gitea/workflows/tests.yaml similarity index 59% rename from .gitea/workflows/nix.yaml rename to .gitea/workflows/tests.yaml index 873b027..8868ca9 100644 --- a/.gitea/workflows/nix.yaml +++ b/.gitea/workflows/tests.yaml @@ -1,10 +1,6 @@ -name: Nix +name: Tests on: pull_request: - push: - branches: - - master - - main env: NIXPKGS_ALLOW_UNFREE: 1 @@ -17,6 +13,9 @@ jobs: - uses: actions/checkout@v3 with: submodules: recursive - lfs: true + - name: alejandra + run: nix develop --impure --command bash -c 'alejandra check flake.nix' + - name: install + run: nix develop --impure --command bash -c 'yarn install' - name: lint run: nix develop --impure --command bash -c 'yarn run lint' diff --git a/flake.nix b/flake.nix index 587469b..923b8e7 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,7 @@ in with pkgs; { defaultPackage = appBuild; devShell = mkShell { - buildInputs = [ nodejs yarn watchman gradle_7 ]; + buildInputs = [ nodejs yarn watchman gradle_7 alejandra ]; ANDROID_SDK_BIN = android-sdk; shellHook = '' export JAVA_HOME=${pkgs.jdk17.home}