2024-01-05 22:52:32 -07:00
|
|
|
name: Tests
|
2024-01-05 22:47:04 -07:00
|
|
|
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
|
2024-01-05 22:52:32 -07:00
|
|
|
- name: alejandra
|
|
|
|
run: nix develop --impure --command bash -c 'alejandra check flake.nix'
|
|
|
|
- name: install
|
2024-01-06 02:13:39 -07:00
|
|
|
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn config set link-folder . && yarn install'
|
2024-01-05 22:47:04 -07:00
|
|
|
- name: lint
|
2024-01-06 02:31:02 -07:00
|
|
|
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run lint'
|
2024-02-03 21:10:16 -07:00
|
|
|
- name: typecheck react-native-vision-camera
|
2024-02-03 21:17:08 -07:00
|
|
|
run: nix develop --impure --command bash -c 'export HOME=$PWD; cd ./react-native-vision-camera/package; yarn install && tsc'
|
2024-01-06 18:04:03 -07:00
|
|
|
- name: typecheck
|
2024-02-03 21:14:18 -07:00
|
|
|
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc'
|
2024-02-03 20:23:31 -07:00
|
|
|
- name: prettier
|
|
|
|
run: nix develop --impure --command bash -c 'export HOME=$PWD; prettier . --check'
|
2024-01-06 18:42:41 -07:00
|
|
|
- name: test
|
2024-01-06 18:51:59 -07:00
|
|
|
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run test --no-watchman'
|