-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (36 loc) · 1.03 KB
/
gofr_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
name: gofr_starts
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
workflow_dispatch:
jobs:
gofr_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: GOFR starts
run: fhirid=$(curl http://localhost:4000/) && echo ${fhirid}
- name: Teardown
working-directory: instant/docker
run: docker-compose down