-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (36 loc) · 1.16 KB
/
test-all.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test all modules E2E
on:
- push
env:
CURRENT_WORKING_ENGINE_COMMIT: aa839aee9011ece7d6a133dee984727748bd3cbf
jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
# Checkout registry repo
- name: Checkout registry Repo
uses: actions/checkout@v4
with:
path: opengb-registry
# Get engine repo to test against
- name: Fetch engine repo
uses: actions/checkout@v4
with:
repository: rivet-gg/opengb
ssh-key: ${{ secrets.GH_DEPLOY_KEY }}
path: opengb
# Get a version of the engine that we know works
- name: Checkout to working commit
run: cd opengb/ && git checkout $CURRENT_WORKING_ENGINE_COMMIT
# Install Deno to run OpenGB
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.41.1"
# Install OpenGB
- name: Install OpenGB
run: cd opengb/ && deno task cli:install
# Run tests on all modules in the registry
- name: Run Tests for all modules
run: cd ./opengb-registry/tests/basic && opengb test --strict-schemas --force-deploy-migrations