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

Commit

Permalink
feat(CI): Create CI for testing all modules based on a known-good eng…
Browse files Browse the repository at this point in the history
…ine commit
  • Loading branch information
Blckbrry-Pi committed Mar 7, 2024
1 parent cd58433 commit 6c1486b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Test all modules E2E
on:
- push

env:
CURRENT_WORKING_ENGINE_COMMIT: f30e8f5c9829c017deaa319e29449e10fa88971b

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: Fetch engine repo
uses: actions/checkout@v4
with:
repository: rivet-gg/opengb
ssh-key: ${{ secrets.GH_DEPLOY_KEY }}
path: opengb

- 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"

- 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
10 changes: 10 additions & 0 deletions tests/test_project/backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
registries:
default:
local:
directory: ../../modules
modules:
currency: {}
friends: {}
rate_limit: {}
tokens: {}
users: {}

0 comments on commit 6c1486b

Please sign in to comment.