-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CI): Create CI for testing all modules based on a known-good eng…
…ine commit
- Loading branch information
1 parent
cd58433
commit a9d20d0
Showing
3 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 920ac277dd0f5378cf8c3cc1ae414340dc6d76a6 | ||
|
||
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 | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: {} |