Fix action
This commit is contained in:
parent
0431ba12c5
commit
7b8db90f75
@ -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'
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user