-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: add integration tests * fix: typo * fix: set environment globally * fix: wait for services * fix: chain healthcheck * fix: volumes issue? * fix: secrets * fix: admin address * fix: typo * fix: update nitro-node * fix: chain-clean * fix: stack environment variables * fix: integration test doppler token * fix: typo
- Loading branch information
Showing
4 changed files
with
55 additions
and
77 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,45 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
run-integration-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Doppler CLI | ||
uses: dopplerhq/cli-action@v1 | ||
|
||
- name: Install golang | ||
uses: actions/setup-go@v5 | ||
|
||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Build Docker Images | ||
run: docker compose -f docker/docker-compose.dev.yml build | ||
|
||
- name: Initialize chain | ||
env: | ||
ADMIN_ADDRESS: ${{ secrets.INTEGRATION_TEST_ADMIN_ADDRESS }} | ||
run: | | ||
./stack chain-clean | ||
docker compose -f ./docker/docker-compose.dev.yml up chain -d | ||
./stack chain-boot | ||
- name: Run stack | ||
env: | ||
ADMIN_ADDRESS: ${{ secrets.INTEGRATION_TEST_ADMIN_ADDRESS }} | ||
DOPPLER_TOKEN_JOB_CREATOR: ${{ secrets.INTEGRATION_TEST_DOPPLER_TOKEN_JOB_CREATOR }} | ||
DOPPLER_TOKEN_SOLVER: ${{ secrets.INTEGRATION_TEST_DOPPLER_TOKEN_SOLVER }} | ||
WEB3_PRIVATE_KEY: ${{ secrets.INTEGRATION_TEST_WEB3_PRIVATE_KEY }} | ||
run: docker compose -f ./docker/docker-compose.dev.yml up -d | ||
|
||
- name: Run tests | ||
env: | ||
DOPPLER_TOKEN: ${{ secrets.INTEGRATION_TESTS_DOPPLER_TOKEN }} | ||
run: ./stack integration-tests |
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
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