building fsh files #42
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: 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 |