Pilot Update #142
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-test: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- | |
name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.GHCR_USER }} | |
password: ${{ secrets.GHCR_TOKEN }} | |
- name: Initialize docker swarm | |
run: docker swarm init | |
- name: Build local docker image of HIE | |
run: ./build-image.sh | |
- name: Download instant CLI | |
run: ./get-cli.sh linux latest | |
- name: Boot up HIE | |
run: ./instant project init --env-file .env.hie -d | |
- name: Cache containers | |
uses: satackey/[email protected] | |
continue-on-error: true | |
- name: Display container status | |
run: docker ps | |
- name: Install Postman CLI | |
run: | | |
curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh | |
- name: Login to Postman CLI | |
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }} | |
- name: Sleep for 250 seconds | |
run: sleep 250 | |
shell: bash | |
- name: Run General API Test Collection | |
run: | | |
postman collection run --verbose --delay-request 1000 --timeout-request 1000 -k "1525496-77f89792-c73b-4c75-a450-5cb6f79230d4" -e "1525496-a3f83e5d-773b-4186-9422-08bb01d07131" | |
continue-on-error: true | |
- name: Run Client Registry Test Collection | |
run: | | |
postman collection run --verbose --delay-request 1000 --timeout-request 1000 -k "1525496-16a5a3c2-719f-40a6-ad06-a9530d3f2006" -e "1525496-a3f83e5d-773b-4186-9422-08bb01d07131" | |
continue-on-error: true | |
- name: Run Laboratory Test Collection | |
run: | | |
postman collection run --verbose --delay-request 1000 --timeout-request 1000 -k "1525496-8be9c19c-9e7b-4316-adea-3604884af5d7" -e "1525496-a3f83e5d-773b-4186-9422-08bb01d07131" | |
continue-on-error: true | |
- name: Display SHR logs | |
if: always() | |
run: | | |
docker service logs shared-health-record_shared-health-record | |
- name: Display fhir-datastore logs | |
if: always() | |
run: | | |
docker service logs hapi-fhir_hapi-fhir | |
- name: Display CR logs | |
if: always() | |
run: | | |
docker service logs client-registry-opencr_opencr | |
- name: Display OpenHIM logs | |
if: always() | |
run: | | |
docker service logs openhim_openhim-core | |
- name: Stop containers | |
if: always() | |
run: ./instant project destroy |