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: on:
pull_request: pull_request:
push:
branches:
- master
- main
env: env:
NIXPKGS_ALLOW_UNFREE: 1 NIXPKGS_ALLOW_UNFREE: 1
@ -17,6 +13,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: recursive 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 - name: lint
run: nix develop --impure --command bash -c 'yarn run lint' run: nix develop --impure --command bash -c 'yarn run lint'

View File

@ -53,7 +53,7 @@
in with pkgs; { in with pkgs; {
defaultPackage = appBuild; defaultPackage = appBuild;
devShell = mkShell { devShell = mkShell {
buildInputs = [ nodejs yarn watchman gradle_7 ]; buildInputs = [ nodejs yarn watchman gradle_7 alejandra ];
ANDROID_SDK_BIN = android-sdk; ANDROID_SDK_BIN = android-sdk;
shellHook = '' shellHook = ''
export JAVA_HOME=${pkgs.jdk17.home} export JAVA_HOME=${pkgs.jdk17.home}