Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

feat(CI): Create CI for testing all modules based on a known-good eng… #3

feat(CI): Create CI for testing all modules based on a known-good eng…

feat(CI): Create CI for testing all modules based on a known-good eng… #3

Workflow file for this run

name: Test all modules E2E
on:
- push
env:
CURRENT_WORKING_ENGINE_COMMIT: 9950b74d0a905914927e1f91d2f3c51729333fad
jobs:
build:
runs-on: ubuntu-20.04
steps:
# Checkout registry repo
- name: Checkout registry Repo
uses: actions/checkout@v4
with:
path: opengb-registry
# Get engine repo to test against
- name: Checkout engine repo
uses: actions/checkout@v4
with:
repository: rivet-gg/opengb
token: ${{ secrets.GH_DEPLOY_KEY }}
ref: $CURRENT_WORKING_ENGINE_COMMIT
path: opengb
# Install Deno to run OpenGB
- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: "1.41.1"
- name: Install OpenGB
run: cd opengb/ && deno task cli:install
- name: Setup OpenGB databases for registry
run: cd ./opengb-registry/tests/test_project opengb db dev
- name: Run Tests for all modules
run: cd ./opengb-registry/tests/test_project && opengb test