-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -381,49 +381,49 @@ jobs: | |
- name: "Clean Maven cache" | ||
run: bash ./scripts/ci/cleanup_cache.sh | ||
|
||
upgrade_tas_tests: | ||
name: ${{ matrix.testSuite }} Upgrade TAS tests | ||
runs-on: ubuntu-latest | ||
if: > | ||
!contains(github.event.head_commit.message, '[skip search]') && | ||
!contains(github.event.head_commit.message, '[skip tests]') | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- testSuite: Elasticsearch | ||
search-engine-type: elasticsearch | ||
- testSuite: Opensearch | ||
search-engine-type: opensearch | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- name: "Build" | ||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} | ||
run: | | ||
bash ./scripts/ci/init.sh | ||
bash ./scripts/ci/build.sh | ||
- name: "Configure AWS credentials" | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_S3_ACSLICENSE_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_S3_ACSLICENSE_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
- name: "Copy Licence" | ||
run: aws s3 cp ${ALF_LICENCE_S3_PATH} ${ALF_LICENCE_LOCAL_PATH} | ||
- name: "Run tests" | ||
id: tests | ||
timeout-minutes: 30 | ||
run: mvn -B install -ntp -pl ":content-repository-elasticsearch-test" -am -Pall-tas-tests,elastic-upgrade -Denvironment=default -DrunBugs=false "-Dsearch.engine.type=${{ matrix.search-engine-type }}" "-Ddatabase.type=postgresql" "-Dindeximage=alfresco-es-indexing-jdbc:latest" "-Dreindeximage=alfresco-es-reindexing-jdbc:latest" "-Drepoimage=alfresco-repository-databases:latest" | ||
- name: "Dump all Docker containers logs" | ||
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
if: failure() && steps.tests.outcome == 'failure' | ||
- name: "Clean Maven cache" | ||
run: bash ./scripts/ci/cleanup_cache.sh | ||
upgrade_tas_tests: | ||
name: ${{ matrix.testSuite }} Upgrade TAS tests | ||
runs-on: ubuntu-latest | ||
if: > | ||
!contains(github.event.head_commit.message, '[skip search]') && | ||
!contains(github.event.head_commit.message, '[skip tests]') | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- testSuite: Elasticsearch | ||
search-engine-type: elasticsearch | ||
- testSuite: Opensearch | ||
search-engine-type: opensearch | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
- name: "Build" | ||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} | ||
run: | | ||
bash ./scripts/ci/init.sh | ||
bash ./scripts/ci/build.sh | ||
- name: "Configure AWS credentials" | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_S3_ACSLICENSE_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_S3_ACSLICENSE_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
- name: "Copy Licence" | ||
run: aws s3 cp ${ALF_LICENCE_S3_PATH} ${ALF_LICENCE_LOCAL_PATH} | ||
- name: "Run tests" | ||
id: tests | ||
timeout-minutes: 30 | ||
run: mvn -B install -ntp -pl ":content-repository-elasticsearch-test" -am -Pall-tas-tests,elastic-upgrade -Denvironment=default -DrunBugs=false "-Dsearch.engine.type=${{ matrix.search-engine-type }}" "-Ddatabase.type=postgresql" "-Dindeximage=alfresco-es-indexing-jdbc:latest" "-Dreindeximage=alfresco-es-reindexing-jdbc:latest" "-Drepoimage=alfresco-repository-databases:latest" | ||
- name: "Dump all Docker containers logs" | ||
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
if: failure() && steps.tests.outcome == 'failure' | ||
- name: "Clean Maven cache" | ||
run: bash ./scripts/ci/cleanup_cache.sh | ||
|
||
all_amps_tests: | ||
name: "All AMPs tests" | ||
|