-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.02 KB
/
integration_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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