railbird-gql/.gitea/workflows/tests.yaml
2024-02-03 21:17:08 -07:00

32 lines
1.2 KiB
YAML

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'
- name: typecheck react-native-vision-camera
run: nix develop --impure --command bash -c 'export HOME=$PWD; cd ./react-native-vision-camera/package; yarn install && tsc'
- name: typecheck
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc'
- name: prettier
run: nix develop --impure --command bash -c 'export HOME=$PWD; prettier . --check'
- name: test
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run test --no-watchman'
- name: android-build
run: nix develop --impure --command bash -c 'cd android; ./gradlew assembleDebug'