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

26 lines
791 B
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
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn tsc --noEmit'
- name: test
run: nix develop --impure --command bash -c 'export HOME=$PWD; yarn run test'