mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
ACS-3841 Test [db][tas][db][ags][ags on MySQL]
This commit is contained in:
694
.github/workflows/ci.yml
vendored
694
.github/workflows/ci.yml
vendored
@@ -65,42 +65,42 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }}
|
srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }}
|
||||||
|
|
||||||
# AllUnitTestsSuite:
|
AllUnitTestsSuite:
|
||||||
# name: "Core, Data-Model, Repository - AllUnitTestsSuite - Build and test"
|
name: "Core, Data-Model, Repository - AllUnitTestsSuite - Build and test"
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs:
|
needs:
|
||||||
# - prepare
|
- prepare
|
||||||
# if: >
|
if: >
|
||||||
# ! contains(github.event.head_commit.message, '[skip repo]') &&
|
! contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
# - name: Cache local Maven repository
|
- name: Cache local Maven repository
|
||||||
# uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
# restore-keys: |
|
restore-keys: |
|
||||||
# ${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
# - name: "Login to Quay.io"
|
- name: "Login to Quay.io"
|
||||||
# uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
# with:
|
with:
|
||||||
# registry: quay.io
|
registry: quay.io
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
# - name: "Set up Java"
|
- name: "Set up Java"
|
||||||
# uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
# with:
|
with:
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
# distribution: "temurin"
|
distribution: "temurin"
|
||||||
# - name: "Run tests"
|
- name: "Run tests"
|
||||||
# run: |
|
run: |
|
||||||
# mvn -B test -pl core,data-model -am -DfailIfNoTests=false
|
mvn -B test -pl core,data-model -am -DfailIfNoTests=false
|
||||||
# mvn -B test -pl "repository,mmt" -am "-Dtest=AllUnitTestsSuite,AllMmtUnitTestSuite" -DfailIfNoTests=false
|
mvn -B test -pl "repository,mmt" -am "-Dtest=AllUnitTestsSuite,AllMmtUnitTestSuite" -DfailIfNoTests=false
|
||||||
|
|
||||||
Remote-api-AppContextTestSuites:
|
Remote-api-AppContextTestSuites:
|
||||||
name: Repository - ${{ matrix.testSuite }}
|
name: Remote-api - ${{ matrix.testSuite }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
@@ -155,7 +155,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
if: >
|
if: >
|
||||||
((github.ref_name == 'master' || contains(github.ref_name, '[release]')) &&
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
||||||
! contains(github.event.head_commit.message, '[skip db]')) ||
|
! contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
contains(github.event.head_commit.message, '[db]') &&
|
contains(github.event.head_commit.message, '[db]') &&
|
||||||
! contains(github.event.head_commit.message, '[skip tests]') &&
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
@@ -191,6 +191,45 @@ jobs:
|
|||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver
|
||||||
|
|
||||||
|
Repository-MariaDB10-6-tests:
|
||||||
|
name: "Repository - MariaDB 10.6 tests"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- prepare
|
||||||
|
if: >
|
||||||
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]')) &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
|
contains(github.event.head_commit.message, '[latest db]') ||
|
||||||
|
contains(github.event.head_commit.message, '[db]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache local Maven repository
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- name: "Login to Quay.io"
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: quay.io
|
||||||
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
|
- name: "Set up Java"
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
distribution: "temurin"
|
||||||
|
- name: "Set up the environment"
|
||||||
|
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
|
||||||
|
env:
|
||||||
|
MARIADB_VERSION: 10.6
|
||||||
|
- name: "Run tests"
|
||||||
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver
|
||||||
|
|
||||||
Repository-MySQL-tests:
|
Repository-MySQL-tests:
|
||||||
name: Repository - MySQL 8 tests
|
name: Repository - MySQL 8 tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -199,6 +238,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
((github.ref_name == 'master' || contains(github.ref_name, '[release]')) &&
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]')) &&
|
||||||
! contains(github.event.head_commit.message, '[skip db]')) ||
|
! contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
|
contains(github.event.head_commit.message, '[latest db]') ||
|
||||||
contains(github.event.head_commit.message, '[db]') &&
|
contains(github.event.head_commit.message, '[db]') &&
|
||||||
! contains(github.event.head_commit.message, '[skip tests]') &&
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
! contains(github.event.head_commit.message, '[force]')
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
@@ -229,6 +269,117 @@ jobs:
|
|||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
||||||
|
|
||||||
|
Repository-PostgreSQL13-7-tests:
|
||||||
|
name: "Repository - PostgreSQL 13.7 tests"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- prepare
|
||||||
|
if: >
|
||||||
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
|
contains(github.event.head_commit.message, '[db]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache local Maven repository
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- name: "Login to Quay.io"
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: quay.io
|
||||||
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
|
- name: "Set up Java"
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
distribution: "temurin"
|
||||||
|
- name: "Set up the environment"
|
||||||
|
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
||||||
|
env:
|
||||||
|
POSTGRES_VERSION: 10.6
|
||||||
|
- name: "Run tests"
|
||||||
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
||||||
|
|
||||||
|
Repository-PostgreSQL14-4-tests:
|
||||||
|
name: "Repository - PostgreSQL 14.4 tests"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- prepare
|
||||||
|
if: >
|
||||||
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]')) &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
|
contains(github.event.head_commit.message, '[latest db]') ||
|
||||||
|
contains(github.event.head_commit.message, '[db]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache local Maven repository
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- name: "Login to Quay.io"
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: quay.io
|
||||||
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
|
- name: "Set up Java"
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
distribution: "temurin"
|
||||||
|
- name: "Set up the environment"
|
||||||
|
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile postgres up -d
|
||||||
|
env:
|
||||||
|
POSTGRES_VERSION: 14.4
|
||||||
|
- name: "Run tests"
|
||||||
|
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
||||||
|
|
||||||
|
Repository-Messaging-tests:
|
||||||
|
name: Repository - Messaging tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- prepare
|
||||||
|
if: >
|
||||||
|
! contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Cache local Maven repository
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
- name: "Login to Quay.io"
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: quay.io
|
||||||
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
|
- name: "Set up Java"
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
distribution: "temurin"
|
||||||
|
- name: "Set up the environment"
|
||||||
|
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile activemq up -d
|
||||||
|
- name: "Run tests"
|
||||||
|
run: mvn -B test -pl repository -am -Dtest=CamelRoutesTest,CamelComponentsTest -DfailIfNoTests=false
|
||||||
|
|
||||||
Repository-AppContextTestSuites:
|
Repository-AppContextTestSuites:
|
||||||
name: Repository - ${{ matrix.testSuite }}
|
name: Repository - ${{ matrix.testSuite }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -368,7 +519,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
${{ env.TAS_SCRIPTS }}/start-compose.sh ${{ env.TAS_ENVIRONMENT }}/docker-compose-minimal+transforms.yml
|
${{ env.TAS_SCRIPTS }}/start-compose.sh ${{ env.TAS_ENVIRONMENT }}/docker-compose-minimal+transforms.yml
|
||||||
${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
||||||
- name: "Run integration test"
|
- name: "Set up the environment for integration tests"
|
||||||
run: |
|
run: |
|
||||||
if [ ${{ matrix.test-name }} == 'Integration TAS tests' ];
|
if [ ${{ matrix.test-name }} == 'Integration TAS tests' ];
|
||||||
then
|
then
|
||||||
@@ -377,280 +528,197 @@ jobs:
|
|||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
run: mvn -B verify -f packaging/tests/${{ matrix.test-dir }}/pom.xml -Pall-tas-tests,${{ matrix.test-profile }} -Denvironment=default -DrunBugs=false
|
run: mvn -B verify -f packaging/tests/${{ matrix.test-dir }}/pom.xml -Pall-tas-tests,${{ matrix.test-profile }} -Denvironment=default -DrunBugs=false
|
||||||
# Repository-PostgreSQL-tests:
|
|
||||||
# name: Repository - PostgreSQL ${{ matrix.version }} tests
|
Share-Services-ShareServicesTestSuite:
|
||||||
# runs-on: ubuntu-latest
|
name: Share Services - ShareServicesTestSuite
|
||||||
# needs:
|
runs-on: ubuntu-latest
|
||||||
# - prepare
|
needs:
|
||||||
# if: >
|
- prepare
|
||||||
# ! contains(github.event.head_commit.message, '[skip repo]') &&
|
if: >
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
! contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
# strategy:
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
# fail-fast: false
|
steps:
|
||||||
# matrix:
|
- uses: actions/checkout@v3
|
||||||
# version: ['13.7', '14.4']
|
- name: Cache local Maven repository
|
||||||
# steps:
|
uses: actions/cache@v2
|
||||||
# - uses: actions/checkout@v3
|
with:
|
||||||
# - name: Cache local Maven repository
|
path: ~/.m2/repository
|
||||||
# uses: actions/cache@v2
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
# with:
|
restore-keys: |
|
||||||
# path: ~/.m2/repository
|
${{ runner.os }}-maven-
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
- name: "Login to Quay.io"
|
||||||
# restore-keys: |
|
uses: docker/login-action@v1
|
||||||
# ${{ runner.os }}-maven-
|
with:
|
||||||
# - name: "Login to Quay.io"
|
registry: quay.io
|
||||||
# uses: docker/login-action@v1
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
# with:
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
# registry: quay.io
|
- name: "Set up Java"
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
uses: actions/setup-java@v3
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
with:
|
||||||
# - name: "Set up Java"
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
# uses: actions/setup-java@v3
|
distribution: "temurin"
|
||||||
# with:
|
- name: "Set up the environment"
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile postgres up -d
|
||||||
# distribution: "temurin"
|
- name: "Run tests"
|
||||||
# - name: "Set up the environment"
|
run: mvn -B test -pl :alfresco-share-services -am -Dtest=ShareServicesTestSuite -DfailIfNoTests=false -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
||||||
# run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mariadb up -d
|
|
||||||
# env:
|
AGS-Tests-PostgresSQL:
|
||||||
# MARIADB_VERSION: ${{ matrix.version }}
|
name: AGS Unit & Integration Tests 0${{ matrix.part }} (PostgreSQL) ${{ matrix.test-name }}
|
||||||
# - name: "Run tests"
|
runs-on: ubuntu-latest
|
||||||
# run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.name=alfresco -Ddb.url=jdbc:mariadb://localhost:3307/alfresco?useUnicode=yes\&characterEncoding=UTF-8 -Ddb.username=alfresco -Ddb.password=alfresco -Ddb.driver=org.mariadb.jdbc.Driver
|
needs:
|
||||||
# Remote-api-AppContext01TestSuite:
|
- prepare
|
||||||
# name: "Remote-api - AppContext01TestSuite"
|
if: >
|
||||||
# runs-on: ubuntu-latest
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
||||||
# needs:
|
! contains(github.event.head_commit.message, '[skip ags]')) ||
|
||||||
# - prepare
|
contains(github.event.head_commit.message, '[ags]') &&
|
||||||
# if: >
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
# ! contains(github.event.head_commit.message, '[skip repo]') &&
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
strategy:
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
fail-fast: false
|
||||||
# env:
|
matrix:
|
||||||
# REQUIRES_INSTALLED_ARTIFACTS: true
|
part: [1, 2, 3, 4]
|
||||||
# steps:
|
env:
|
||||||
# - uses: actions/checkout@v3
|
REQUIRES_INSTALLED_ARTIFACTS: true
|
||||||
# - name: Cache local Maven repository
|
steps:
|
||||||
# uses: actions/cache@v2
|
- uses: actions/checkout@v3
|
||||||
# with:
|
- name: Cache local Maven repository
|
||||||
# path: ~/.m2/repository
|
uses: actions/cache@v2
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
with:
|
||||||
# restore-keys: |
|
path: ~/.m2/repository
|
||||||
# ${{ runner.os }}-maven-
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
# - name: "Login to Quay.io"
|
restore-keys: |
|
||||||
# uses: docker/login-action@v1
|
${{ runner.os }}-maven-
|
||||||
# with:
|
- name: "Login to Quay.io"
|
||||||
# registry: quay.io
|
uses: docker/login-action@v1
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
with:
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
registry: quay.io
|
||||||
# - name: "Set up Java"
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
# uses: actions/setup-java@v3
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
# with:
|
- name: "Set up Java"
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
uses: actions/setup-java@v3
|
||||||
# distribution: "temurin"
|
with:
|
||||||
# - name: "Build"
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
distribution: "temurin"
|
||||||
# run: |
|
- name: "Build"
|
||||||
# bash ./scripts/ci/init.sh
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
# bash ./scripts/ci/build.sh
|
run: |
|
||||||
# - name: "Set up the environment"
|
bash ./scripts/ci/init.sh
|
||||||
# run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml up -d
|
bash ./scripts/ci/build.sh
|
||||||
# - name: "Run tests"
|
- name: "Verify"
|
||||||
# run: mvn -B test -pl remote-api -Dtest=AppContext01TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
#
|
run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-postgres -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }}
|
||||||
# Remote-api-AppContext02TestSuite:
|
|
||||||
# name: "Remote-api - AppContext02TestSuite"
|
AGS-Tests-MySQL:
|
||||||
# runs-on: ubuntu-latest
|
name: AGS Unit & Integration Tests 0${{ matrix.part }} (PostgreSQL) ${{ matrix.test-name }}
|
||||||
# needs:
|
runs-on: ubuntu-latest
|
||||||
# - prepare
|
needs:
|
||||||
# if: >
|
- prepare
|
||||||
# ! contains(github.event.head_commit.message, '[skip repo]') &&
|
if: >
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
! contains(github.event.head_commit.message, '[skip ags]')) ||
|
||||||
# env:
|
contains(github.event.head_commit.message, '[ags on MySQL]') &&
|
||||||
# REQUIRES_INSTALLED_ARTIFACTS: true
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
# steps:
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
# - uses: actions/checkout@v3
|
strategy:
|
||||||
# - name: Cache local Maven repository
|
fail-fast: false
|
||||||
# uses: actions/cache@v2
|
matrix:
|
||||||
# with:
|
part: [1, 2, 3, 4]
|
||||||
# path: ~/.m2/repository
|
env:
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
REQUIRES_INSTALLED_ARTIFACTS: true
|
||||||
# restore-keys: |
|
steps:
|
||||||
# ${{ runner.os }}-maven-
|
- uses: actions/checkout@v3
|
||||||
# - name: "Login to Quay.io"
|
- name: Cache local Maven repository
|
||||||
# uses: docker/login-action@v1
|
uses: actions/cache@v2
|
||||||
# with:
|
with:
|
||||||
# registry: quay.io
|
path: ~/.m2/repository
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
restore-keys: |
|
||||||
# - name: "Set up Java"
|
${{ runner.os }}-maven-
|
||||||
# uses: actions/setup-java@v3
|
- name: "Login to Quay.io"
|
||||||
# with:
|
uses: docker/login-action@v1
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
with:
|
||||||
# distribution: "temurin"
|
registry: quay.io
|
||||||
# - name: "Build"
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
# run: |
|
- name: "Set up Java"
|
||||||
# echo "TRANSFORMERS_TAG=$(mvn help:evaluate -Dexpression=dependency.alfresco-transform-core.version -q -DforceStdout)" >> $GITHUB_ENV
|
uses: actions/setup-java@v3
|
||||||
# bash ./scripts/ci/init.sh
|
with:
|
||||||
# bash ./scripts/ci/build.sh
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
# - name: "Set up the environment"
|
distribution: "temurin"
|
||||||
# run: docker-compose -f ./scripts/ci/docker-compose/docker-compose.yaml --profile with-transform-core-aio up -d
|
- name: "Build"
|
||||||
# - name: "Run tests"
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
# run: mvn -B test -pl remote-api -Dtest=AppContext02TestSuite -Ddb.driver=org.postgresql.Driver -Ddb.name=alfresco -Ddb.url=jdbc:postgresql://localhost:5433/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
|
run: |
|
||||||
#
|
bash ./scripts/ci/init.sh
|
||||||
# REST-API-TAS-tests-part1:
|
bash ./scripts/ci/build.sh
|
||||||
# name: "REST API TAS tests part1"
|
- name: "Verify"
|
||||||
# runs-on: ubuntu-latest
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
# needs:
|
run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-mysql -PagsAllTestSuitePt${{ matrix.part }} ${{ env.LOG_WARN }}
|
||||||
# - prepare
|
|
||||||
# if: >
|
AGS-Community-Rest-API-Tests:
|
||||||
# ((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
name: "AGS Community Rest API Tests"
|
||||||
# ! contains(github.event.head_commit.message, '[skip tas]')) ||
|
runs-on: ubuntu-latest
|
||||||
# contains(github.event.head_commit.message, '[tas]') &&
|
needs:
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
- prepare
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
if: >
|
||||||
# env:
|
((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
||||||
# REQUIRES_LOCAL_IMAGES: true
|
! contains(github.event.head_commit.message, '[skip ags]')) ||
|
||||||
# steps:
|
contains(github.event.head_commit.message, '[ags]') &&
|
||||||
# - uses: actions/checkout@v3
|
! contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
# - name: Cache local Maven repository
|
! contains(github.event.head_commit.message, '[force]')
|
||||||
# uses: actions/cache@v2
|
steps:
|
||||||
# with:
|
- uses: actions/checkout@v3
|
||||||
# path: ~/.m2/repository
|
- name: Cache local Maven repository
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
uses: actions/cache@v2
|
||||||
# restore-keys: |
|
with:
|
||||||
# ${{ runner.os }}-maven-
|
path: ~/.m2/repository
|
||||||
# - name: "Login to Quay.io"
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
# uses: docker/login-action@v1
|
restore-keys: |
|
||||||
# with:
|
${{ runner.os }}-maven-
|
||||||
# registry: quay.io
|
- name: "Login to Docker Hub"
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
uses: docker/login-action@v1
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
with:
|
||||||
# - name: "Set up Java"
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# uses: actions/setup-java@v3
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
# with:
|
- name: "Login to Quay.io"
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
uses: docker/login-action@v1
|
||||||
# distribution: "temurin"
|
with:
|
||||||
# - name: "Build"
|
registry: quay.io
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
username: ${{ secrets.QUAY_USERNAME }}
|
||||||
# run: |
|
password: ${{ secrets.QUAY_PASSWORD }}
|
||||||
# bash ./scripts/ci/init.sh
|
- name: "Set up Java"
|
||||||
# bash ./scripts/ci/build.sh
|
uses: actions/setup-java@v3
|
||||||
# - name: "Set up the environment"
|
with:
|
||||||
# run: |
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
# ${{ env.TAS_SCRIPTS }}/start-compose.sh ${{ env.TAS_ENVIRONMENT }}/docker-compose-minimal+transforms.yml
|
distribution: "temurin"
|
||||||
# ${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8082/alfresco"
|
- name: "Build"
|
||||||
# - name: "Run tests"
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
run: bash ./scripts/ci/build.sh
|
||||||
# run: mvn -B verify -Pall-tas-tests,run-restapi-part1 -Denvironment=default -DrunBugs=false
|
env:
|
||||||
#
|
REQUIRES_LOCAL_IMAGES: true
|
||||||
# AGS-Unit-And_Integration-Tests-01-PostgreSQL:
|
- name: "Set up the environment"
|
||||||
# name: "AGS Unit & Integration Tests 01 (PostgreSQL)"
|
run: |
|
||||||
# runs-on: ubuntu-latest
|
${{ env.TAS_SCRIPTS }}/start-compose.sh ./amps/ags/rm-community/rm-community-repo/docker-compose.yml
|
||||||
# needs:
|
${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco"
|
||||||
# - prepare
|
- name: "Test"
|
||||||
# if: >
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
||||||
# ((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
run: mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -am -DfailIfNoTests=false -Dskip.automationtests=false -Pags
|
||||||
# ! contains(github.event.head_commit.message, '[skip ags]')) ||
|
- run: bash amps/ags/ci/scripts/getLogs.sh
|
||||||
# contains(github.event.head_commit.message, '[ags]') &&
|
if: ${{ always() }}
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
- shell: bash
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
if: ${{ always() }}
|
||||||
# env:
|
run: |
|
||||||
# REQUIRES_INSTALLED_ARTIFACTS: true
|
mkdir -p deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests
|
||||||
# steps:
|
mv "alfresco.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
||||||
# - uses: actions/checkout@v3
|
mv "solr.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
||||||
# - name: Cache local Maven repository
|
mv "./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
||||||
# uses: actions/cache@v2
|
- name: "Configure AWS credentials"
|
||||||
# with:
|
if: ${{ always() }}
|
||||||
# path: ~/.m2/repository
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
with:
|
||||||
# restore-keys: |
|
aws-access-key-id: ${{ secrets.AGS_AWS_ACCESS_KEY_ID }}
|
||||||
# ${{ runner.os }}-maven-
|
aws-secret-access-key: ${{ secrets.AGS_AWS_SECRET_ACCESS_KEY }}
|
||||||
# - name: "Login to Quay.io"
|
aws-region: us-east-1
|
||||||
# uses: docker/login-action@v1
|
- name: "Upload artifacts to Amazon S3 bucket"
|
||||||
# with:
|
if: ${{ always() }}
|
||||||
# registry: quay.io
|
run: aws s3 cp --recursive ./deploy_dir s3://ags-travis-artifacts
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
# - name: "Set up Java"
|
|
||||||
# uses: actions/setup-java@v3
|
|
||||||
# with:
|
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
# distribution: "temurin"
|
|
||||||
# - name: "Build"
|
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
||||||
# run: |
|
|
||||||
# bash ./scripts/ci/init.sh
|
|
||||||
# bash ./scripts/ci/build.sh
|
|
||||||
# - name: "Verify"
|
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
||||||
# run: mvn --file amps/ags/pom.xml -B verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Pags -Pstart-postgres -PagsAllTestSuitePt1 ${{ env.LOG_WARN }}
|
|
||||||
#
|
|
||||||
# AGS-Community-Rest-API-Tests:
|
|
||||||
# name: "AGS Community Rest API Tests"
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# needs:
|
|
||||||
# - prepare
|
|
||||||
# if: >
|
|
||||||
# ((github.ref_name == 'master' || contains(github.ref_name, '[release]') || github.event_name == 'pull_request' ) &&
|
|
||||||
# ! contains(github.event.head_commit.message, '[skip ags]')) ||
|
|
||||||
# contains(github.event.head_commit.message, '[ags]') &&
|
|
||||||
# ! contains(github.event.head_commit.message, '[skip tests]') &&
|
|
||||||
# ! contains(github.event.head_commit.message, '[force]')
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/checkout@v3
|
|
||||||
# - name: Cache local Maven repository
|
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: ~/.m2/repository
|
|
||||||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-maven-
|
|
||||||
# - name: "Login to Docker Hub"
|
|
||||||
# uses: docker/login-action@v1
|
|
||||||
# with:
|
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
# - name: "Login to Quay.io"
|
|
||||||
# uses: docker/login-action@v1
|
|
||||||
# with:
|
|
||||||
# registry: quay.io
|
|
||||||
# username: ${{ secrets.QUAY_USERNAME }}
|
|
||||||
# password: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
# - name: "Set up Java"
|
|
||||||
# uses: actions/setup-java@v3
|
|
||||||
# with:
|
|
||||||
# java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
# distribution: "temurin"
|
|
||||||
# - name: "Build"
|
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
||||||
# run: bash ./scripts/ci/build.sh
|
|
||||||
# env:
|
|
||||||
# REQUIRES_LOCAL_IMAGES: true
|
|
||||||
# - name: "Set up the environment"
|
|
||||||
# run: |
|
|
||||||
# ${{ env.TAS_SCRIPTS }}/start-compose.sh ./amps/ags/rm-community/rm-community-repo/docker-compose.yml
|
|
||||||
# ${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8080/alfresco"
|
|
||||||
# - name: "Test"
|
|
||||||
# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
||||||
# run: mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -am -DfailIfNoTests=false -Dskip.automationtests=false -Pags
|
|
||||||
# - run: bash amps/ags/ci/scripts/getLogs.sh
|
|
||||||
# if: ${{ always() }}
|
|
||||||
# - shell: bash
|
|
||||||
# if: ${{ always() }}
|
|
||||||
# run: |
|
|
||||||
# mkdir -p deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests
|
|
||||||
# mv "alfresco.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
|
||||||
# mv "solr.log" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
|
||||||
# mv "./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports" "deploy_dir/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests"
|
|
||||||
# - name: "Configure AWS credentials"
|
|
||||||
# if: ${{ always() }}
|
|
||||||
# uses: aws-actions/configure-aws-credentials@v1
|
|
||||||
# with:
|
|
||||||
# aws-access-key-id: ${{ secrets.AGS_AWS_ACCESS_KEY_ID }}
|
|
||||||
# aws-secret-access-key: ${{ secrets.AGS_AWS_SECRET_ACCESS_KEY }}
|
|
||||||
# aws-region: us-east-1
|
|
||||||
# - name: "Upload artifacts to Amazon S3 bucket"
|
|
||||||
# if: ${{ always() }}
|
|
||||||
# run: aws s3 cp --recursive ./deploy_dir s3://ags-travis-artifacts
|
|
@@ -10,7 +10,7 @@ services:
|
|||||||
- "8090:8090"
|
- "8090:8090"
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14.4
|
image: postgres:14.4
|
||||||
profiles: ["default", "with-transform-core-aio"]
|
profiles: ["default", "with-transform-core-aio", "postgres"]
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=alfresco
|
- POSTGRES_PASSWORD=alfresco
|
||||||
- POSTGRES_USER=alfresco
|
- POSTGRES_USER=alfresco
|
||||||
@@ -19,7 +19,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5433:5432"
|
- "5433:5432"
|
||||||
activemq:
|
activemq:
|
||||||
profiles: ["default", "with-transform-core-aio"]
|
profiles: ["default", "with-transform-core-aio", "activemq"]
|
||||||
image: alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
|
image: alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
|
||||||
ports:
|
ports:
|
||||||
- "5672:5672" # AMQP
|
- "5672:5672" # AMQP
|
||||||
|
Reference in New Issue
Block a user