schematic pull #2890
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
name: integration_test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install npm modules | |
run: | | |
cd public && npm ci && npm run jshint && npm run bundle | |
- name: Start services | |
run: | | |
docker compose up -d postgres | |
sleep 10 | |
docker compose up -d blockexchange | |
- name: Wait for services to come up | |
uses: cygnetdigital/wait_for_response@v2.0.0 | |
with: | |
url: 'http://localhost:8080/' | |
responseCode: '200' | |
timeout: 120000 | |
interval: 1000 | |
- name: Execute tests | |
run: docker compose up --exit-code-from integration-test integration-test | |
- name: Execute mod tests | |
run: docker compose up --exit-code-from mod-integration-test mod-integration-test | |
- uses: shogo82148/actions-goveralls@v1.9.0 | |
with: | |
path-to-profile: profile.cov |