-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (37 loc) · 1.09 KB
/
hapi_starts.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
44
45
46
47
name: hapi_starts
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
workflow_dispatch:
jobs:
hapi_starts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: intrahealth/gofr
- run: ls -la
# or error from act: docker-compose: command not found
- name: docker-compose install if using act
run: |
sudo curl -L https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
if: ${{ env.ACT }}
- name: Launch
working-directory: instant/docker
run: docker-compose up -d
# wait for stack to come up
- run: sleep 360
- name: HAPI starts
# working-directory: tests
run: fhirid=$(curl http://localhost:8080/fhir/DEFAULT/metadata) && echo ${fhirid}
- name: Teardown
working-directory: instant/docker
run: docker-compose down