Skip to content

Commit 4521052

Browse files
committed
Use profile for importer in e2e setup script
Add a default 'false' input value which determines if jore3 importer and mssql should be started along other services in e2e setup.
1 parent b39d9eb commit 4521052

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

github-actions/setup-e2e-environment/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ inputs:
9595
docker-compose.custom.yml setup
9696
required: false
9797
default: ""
98+
start_jore3_importer:
99+
description: Should Jore3 importer be started along the rest of the e2e environment.
100+
required: false
101+
default: "false"
98102

99103
runs:
100104
using: "composite"
@@ -124,7 +128,7 @@ runs:
124128
TIMETABLESAPI_DOCKER_IMAGE: ${{ inputs.timetablesapi_version }}
125129
TIAMAT_DOCKER_IMAGE: ${{ inputs.tiamat_version }}
126130
run: |
127-
docker compose -f ${{ github.workspace }}/docker/docker-compose.yml ${{ inputs.custom_docker_compose != '' && format('-f {0}', inputs.custom_docker_compose) || '' }} up -d
131+
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
128132
shell: bash
129133

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

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

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

0 commit comments

Comments
 (0)