Skip to content

Commit

Permalink
Tomcat deployment test for acs-community-packaging (#1524)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mstrankowski committed Jul 4, 2023
1 parent b3241b1 commit 106952d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 106952d

Please sign in to comment.