-
Notifications
You must be signed in to change notification settings - Fork 30
52 lines (49 loc) · 2 KB
/
Copy pathdocker-tests.yml
File metadata and controls
52 lines (49 loc) · 2 KB
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
44
45
46
47
48
49
50
51
52
name: e2e test
on:
push:
branches:
- main
pull_request:
paths:
- 'docker/**'
- '.github/**'
# workflow_dispatch will let us manually trigger the workflow from GitHub actions dashboard.
# See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:
jobs:
default-docker-compose-verification:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Verify hypertrace deployment
working-directory: docker
run: |
docker-compose -f docker-compose.yml -f docker-compose-zipkin-example.yml pull
docker-compose -f docker-compose.yml -f docker-compose-zipkin-example.yml up -d || { ../.github/workflows/scripts/inspect.sh ; exit 1 ; }
- name: Waits for some stability
working-directory: docker
run: |
sleep 60 # you can decrease it but never increase it
docker-compose -f docker-compose.yml ps
- name: Runs tests
working-directory: ./.github/workflows/scripts/
run: ./tests.sh mongo
docker-compose-verification-with-postgres:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Verify hypertrace deployment
working-directory: docker
run: |
docker-compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose-zipkin-example.yml pull
docker-compose -f docker-compose.yml -f docker-compose.postgres.yml -f docker-compose-zipkin-example.yml up -d || { ../.github/workflows/scripts/inspect.sh postgres; exit 1 ; }
- name: Waits for some stability
working-directory: docker
run: |
sleep 60 # you can decrease it but never increase it
docker-compose -f docker-compose.yml -f docker-compose.postgres.yml ps
- name: Runs tests
working-directory: ./.github/workflows/scripts/
run: ./tests.sh postgres