Merge pull request 'Remove main from action' (#6) from ivan/remove-main-branch-from-actions into master

Reviewed-on: billnerds/rn-playground#6
This commit is contained in:
Ivan Malison 2024-01-06 06:26:20 -07:00
commit 1031794d85
4 changed files with 22 additions and 13877 deletions

View File

@ -1,22 +0,0 @@
name: Nix
on:
pull_request:
push:
branches:
- master
- main
env:
NIXPKGS_ALLOW_UNFREE: 1
jobs:
install:
name: Install
runs-on: nixos-x86_64-linux
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
lfs: true
- name: lint
run: nix develop --impure --command bash -c 'yarn run lint'

View File

@ -0,0 +1,21 @@
name: Tests
on:
pull_request:
env:
NIXPKGS_ALLOW_UNFREE: 1
jobs:
install:
name: Install
runs-on: nixos-x86_64-linux
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: alejandra
run: nix develop --impure --command bash -c 'alejandra check flake.nix'
- name: install
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn config set link-folder . && yarn install'
- name: lint
run: nix develop --impure --command bash -c 'export HOME=$PWD; 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}

13854
package-lock.json generated

File diff suppressed because it is too large Load Diff