Fix action

This commit is contained in:
Ivan Malison 2024-01-05 22:52:32 -07:00
parent 0431ba12c5
commit 7b8db90f75
2 changed files with 6 additions and 7 deletions

View File

@ -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'

View File

@ -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}