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