railbird-gql/.gitea/workflows/tests.yaml

28 lines
919 B
YAML
Raw Normal View History

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-01-06 18:04:03 -07:00
- name: typecheck
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc --noEmit'
- 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'