diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 96aeaa13e3..cd755eaad4 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -143,8 +143,11 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} cypress-run: - name: End-to-end tests + name: End-to-end tests, GeoNetwork v${{ matrix.gn_version }} runs-on: ubuntu-latest + strategy: + matrix: + gn_version: [4.2.2, 4.2.8, 4.4.0] outputs: screenshotsUrl: ${{ steps.upload-screenshots.outputs.artifact-url }} steps: @@ -160,7 +163,10 @@ jobs: run: cd tools && docker build . -f pipelines/Dockerfile -t geonetwork/geonetwork-ui-tools-pipelines:latest - name: Build the backend - run: sudo docker-compose -f support-services/docker-compose.yml up -d init + env: + GEONETWORK_VERSION: ${{ matrix.gn_version }} + working-directory: support-services + run: docker compose up -d init - name: Install dependencies run: | diff --git a/support-services/docker-compose.yml b/support-services/docker-compose.yml index 6af9796a21..783cf1563b 100644 --- a/support-services/docker-compose.yml +++ b/support-services/docker-compose.yml @@ -92,24 +92,14 @@ services: -Dgeonetwork.data.dir=/catalogue-data/data -Dgeonetwork.codeList.dir=/catalogue-data/config/codelist -Dgeonetwork.schema.dir=/catalogue-data/config/schema_plugins - - # These are needed for GN 4.4.x versions; will be ignored otherwise - GN_CONFIG_PROPERTIES: >- - -Dgeonetwork.dir=/catalogue-data - -Dgeonetwork.formatter.dir=/catalogue-data/data/formatter - -Dgeonetwork.schema.dir=/opt/geonetwork/WEB-INF/data/config/schema_plugins - -Dgeonetwork.indexConfig.dir=/opt/geonetwork/WEB-INF/data/config/index - -Dgeonetwork.schemapublication.dir=/opt/geonetwork/WEB-INF/data/resources/schemapublication - -Dgeonetwork.htmlcache.dir=/opt/geonetwork/WEB-INF/data/resources/htmlcache + -Dgeonetwork.config.dir=/catalogue-data/config + -Dgeonetwork.indexConfig.dir=/catalogue-data/config/index -Des.host=elasticsearch -Des.protocol=http -Des.port=9200 -Des.url=http://elasticsearch:9200 -Des.username= -Des.password= - -Dgeonetwork.ESFeaturesProxy.targetUri=http://elasticsearch:9200/gn-features/{_} - -Dgeonetwork.HttpDashboardProxy.targetUri=http://kibana:5601 - -Dgeonetwork.MicroServicesProxy.targetUri=http://ogc-api-records-service:8080 depends_on: database: condition: service_healthy @@ -144,7 +134,7 @@ services: init: image: alpine/curl # only run init if volumes were cleared - command: sh -c "if [ ! -f /done ]; then run-parts /docker-entrypoint.d --exit-on-error; else echo 'Nothing to do.'; exit 0; fi" + command: sh -c -e "if [ ! -f /done ]; then run-parts /docker-entrypoint.d --exit-on-error; else echo 'Nothing to do.'; exit 0; fi" environment: GEONETWORK_VERSION: ${GEONETWORK_VERSION} depends_on: diff --git a/support-services/docker-entrypoint.d/04-upload-thesauri.sh b/support-services/docker-entrypoint.d/04-upload-thesauri.sh index 738b0eed69..ae898293be 100755 --- a/support-services/docker-entrypoint.d/04-upload-thesauri.sh +++ b/support-services/docker-entrypoint.d/04-upload-thesauri.sh @@ -15,5 +15,6 @@ do -H 'Accept: application/json, text/plain, */*' \ -H "Cookie: JSESSIONID=$jsessionid; XSRF-TOKEN=$xsrf_token" \ -H "X-XSRF-TOKEN: $xsrf_token" + echo "" done