From 14c40b5e213167256053b0582c84f0aa84049665 Mon Sep 17 00:00:00 2001 From: Dulanjali Dilmi Date: Thu, 8 Feb 2024 23:23:42 +0530 Subject: [PATCH] Update git actions --- .github/workflows/cluster-tests.yml | 2 +- .github/workflows/jdk-17-tests.yml | 20 +++++++ .github/workflows/smoke-tests.yml | 2 +- integration/mediation-tests/pom.xml | 17 ++++++ .../test/fault/ESBJAVA2615TestCase.java | 2 +- integration/pom.xml | 54 +++++++++++++++++++ 6 files changed, 94 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cluster-tests.yml b/.github/workflows/cluster-tests.yml index fb33f9258b..42f2d4f956 100644 --- a/.github/workflows/cluster-tests.yml +++ b/.github/workflows/cluster-tests.yml @@ -1,6 +1,6 @@ name: Cluster tests (JDK17 & MySQL) -on: [push, pull_request] +on: [push] jobs: ubuntu: diff --git a/.github/workflows/jdk-17-tests.yml b/.github/workflows/jdk-17-tests.yml index c274fe05f9..6d8a51277e 100644 --- a/.github/workflows/jdk-17-tests.yml +++ b/.github/workflows/jdk-17-tests.yml @@ -5,8 +5,26 @@ on: [push, pull_request] jobs: ubuntu: runs-on: ubuntu-latest +# strategy: +# matrix: +# include: +## - id: 1 +## profile: tests-mediators_tests-other_tests-sample +# - id: 1 +# profile: qwerty +## - id: 3 +## profile: tests-transport_tests-platform +## - id: 4 +## profile: management-api_dss-tests +# fail-fast: false steps: - uses: actions/checkout@v3 + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2 + restore-keys: ${{ runner.os }}-m2 - name: Set up JDK 11 uses: actions/setup-java@v2 with: @@ -27,5 +45,7 @@ jobs: run: echo "MAVEN_VERSION=$(mvn -v)" - name: check java version run: echo "JAVA_VERSION=$(java -version)" +# - name: Print segment +# run: echo "Running build for segment ${{ matrix.profile }}" - name: JDK 17 Tests run: mvn -B clean install --file integration/pom.xml -fae diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index efb6c5535b..f64ade2a91 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -1,6 +1,6 @@ name: Smoke Tests (JDK11) -on: [push, pull_request] +on: [push] jobs: others: diff --git a/integration/mediation-tests/pom.xml b/integration/mediation-tests/pom.xml index 917145041a..e149431556 100755 --- a/integration/mediation-tests/pom.xml +++ b/integration/mediation-tests/pom.xml @@ -53,6 +53,23 @@ coverage-report + + qwerty + + service-samples + + + tests-service + + tests-mediator-2 + + + + + + coverage-report + + full diff --git a/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/fault/ESBJAVA2615TestCase.java b/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/fault/ESBJAVA2615TestCase.java index de7e207a5c..a919b7f0da 100644 --- a/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/fault/ESBJAVA2615TestCase.java +++ b/integration/mediation-tests/tests-mediator-1/src/test/java/org/wso2/carbon/esb/mediator/test/fault/ESBJAVA2615TestCase.java @@ -28,7 +28,7 @@ public void uploadSynapseConfig() throws Exception { loadESBConfigurationFromClasspath("/artifacts/ESB/proxyconfig/proxy/protocolViolationProxy/synapse.xml"); } - @Test(groups = { "wso2.esb" }, description = "Creating Protocol Violation test", enabled = true) + @Test(groups = { "wso2.esb" }, description = "Creating Protocol Violation test", enabled = false) public void testSOAP11FaultActor() throws AxisFault { String messageBody = createRequest(); String reposnce = httpClient(getProxyServiceURLHttp("HelloProxy"), messageBody); diff --git a/integration/pom.xml b/integration/pom.xml index 8a9d6ce4d7..8ec16442cc 100644 --- a/integration/pom.xml +++ b/integration/pom.xml @@ -867,6 +867,17 @@ management-api-tests + + qwerty + + samples/product + automation-extensions + tests-common + mediation-tests + + + + platform @@ -931,6 +942,49 @@ + + tests-mediators_tests-other_tests-sample + + samples/product + automation-extensions + tests-common + mediation-tests/service-samples + + mediation-tests/tests-mediator-2 + + + + + + tests-service_tests-patches_service-samples + + samples/product + automation-extensions + tests-common + + + mediation-tests/service-samples + mediation-tests/tests-mediator-2 + + + + tests-transport_tests-platform + + samples/product + automation-extensions + tests-common + mediation-tests/tests-transport + mediation-tests/tests-transport-2 + mediation-tests/tests-platform + + + + management-api_dss-tests + + management-api-tests + dataservice-hosting-tests + + tests-service_patches_servicesamples_dss