Skip to content

Commit

Permalink
Use profile for importer in e2e setup script
Browse files Browse the repository at this point in the history
Add a default 'false' input value which determines if jore3 importer
and mssql should be started along other services in e2e setup.
  • Loading branch information
culka committed Sep 19, 2024
1 parent b39d9eb commit de48a7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion github-actions/setup-e2e-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ inputs:
docker-compose.custom.yml setup
required: false
default: ""
start_jore3_importer:
description: Should Jore3 importer be started along the rest of the e2e environment.
required: false
default: "false"

runs:
using: "composite"
Expand Down Expand Up @@ -124,7 +128,7 @@ runs:
TIMETABLESAPI_DOCKER_IMAGE: ${{ inputs.timetablesapi_version }}
TIAMAT_DOCKER_IMAGE: ${{ inputs.tiamat_version }}
run: |
docker compose -f ${{ github.workspace }}/docker/docker-compose.yml ${{ inputs.custom_docker_compose != '' && format('-f {0}', inputs.custom_docker_compose) || '' }} up -d
docker compose -f ${{ github.workspace }}/docker/docker-compose.yml ${{ inputs.custom_docker_compose != '' && format('-f {0}', inputs.custom_docker_compose) || '' }} ${{ inputs.start_jore3_importer == 'true' && '--profile importer' || '' }} up -d
shell: bash

- name: Show which versions of the docker images are spun up
Expand All @@ -149,6 +153,7 @@ runs:
retries: 50

- name: Verify that mssql testdb is up and running
if: ${{ inputs.start_jore3_importer == 'true' }}
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
env:
SA_PASSWORD: "P@ssw0rd"
Expand Down Expand Up @@ -212,6 +217,7 @@ runs:
/dev/null --silent"

- name: Verify that jore3 importer is up and running standalone
if: ${{ inputs.start_jore3_importer == 'true' }}
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
with:
command:
Expand Down

0 comments on commit de48a7a

Please sign in to comment.