From 106952d3ebe9ceeb3840ecd79dd07f0c8847c539 Mon Sep 17 00:00:00 2001 From: Marcin Strankowski <74721865+mstrankowski@users.noreply.github.com> Date: Tue, 4 Jul 2023 18:33:21 +0200 Subject: [PATCH] Tomcat deployment test for acs-community-packaging (#1524) * Tomcat deployment test for acs-community-packaging * Remove action * Test tomcat 10 fails * Test with link directed to localhost:8080, with 500 exception it should be a better spot to notice failure than 302 with error from /alfresco * Test tomcat 9 works * Test tomcat 10 fails with non-redirect link * Tested failure properly, reverting to tomcat9 --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65ea3145d..18809b0fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,6 +116,29 @@ jobs: - name: "Clean Maven cache" run: bash ./scripts/ci/cleanup_cache.sh + community_test_tomcat_deployment: + name: "Test Tomcat deployment" + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[skip tests]')" + steps: + - uses: actions/checkout@v3 + - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.33.0 + - name: "Init" + timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} + run: | + bash ./scripts/ci/init.sh + bash ./scripts/ci/build.sh + - name: "Set up the environment" + run: | + ${TAS_SCRIPTS}/start-compose.sh ./dev/docker-compose.yml + ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8983/solr" + - name: "Run tomcat, verify it starts" + id: tests + run: | + (mvn clean install -Prun -rf dev &) + ${TAS_SCRIPTS}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco/" + docker_latest: name: Update latest Docker images runs-on: ubuntu-latest