You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2022/02/05 12:18:33 UTC
[syncope] 01/02: Adding GH actions for pgjsonb, myjson and Elasticsearch
This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
commit b7bc07774bc0668921b1b37d404e16ab79b850d7
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Sat Feb 5 12:50:41 2022 +0100
Adding GH actions for pgjsonb, myjson and Elasticsearch
---
.github/workflows/fit_Elasticsearch.yml | 47 +++++++++++++++++++++++++++++++
.github/workflows/jpajson.yml | 49 +++++++++++++++++++++++++++++++++
core/persistence-jpa-json/pom.xml | 4 +--
3 files changed, 98 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/fit_Elasticsearch.yml b/.github/workflows/fit_Elasticsearch.yml
new file mode 100644
index 0000000..89cd07c
--- /dev/null
+++ b/.github/workflows/fit_Elasticsearch.yml
@@ -0,0 +1,47 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License
+name: "FIT Elasticsearch"
+
+on:
+ push:
+ branches: [2_1_X]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [2_1_X]
+ schedule:
+ - cron: '0 13 * * 4'
+
+jobs:
+ fit_Elasticsearch:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Setup Java JDK
+ uses: actions/setup-java@v1.4.3
+ with:
+ java-version: 8
+ - uses: actions/cache@v2.1.1
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Build
+ run: mvn -U -T 1C -P 'skipTests,all'
+ - name: 'Elasticsearch / H2 / JSON'
+ run: mvn -f fit/core-reference/pom.xml -P elasticsearch-it -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true
diff --git a/.github/workflows/jpajson.yml b/.github/workflows/jpajson.yml
new file mode 100644
index 0000000..b1370a4
--- /dev/null
+++ b/.github/workflows/jpajson.yml
@@ -0,0 +1,49 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License
+name: "JPA JSON"
+
+on:
+ push:
+ branches: [2_1_X]
+ pull_request:
+ # The branches below must be a subset of the branches above
+ branches: [2_1_X]
+ schedule:
+ - cron: '0 13 * * 4'
+
+jobs:
+ PostgreSQL:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - name: Setup Java JDK
+ uses: actions/setup-java@v1.4.3
+ with:
+ java-version: 8
+ - uses: actions/cache@v2.1.1
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Build
+ run: mvn -U -T 1C -P 'skipTests,all'
+ - name: 'Unit Tests: PostgreSQL JPA JSON'
+ run: mvn -f core/persistence-jpa-json/pom.xml -P pgjsonb -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Dianal.phase=none -Drat.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true
+ - name: 'Unit Tests: MySQL JPA JSON'
+ run: mvn -f core/persistence-jpa-json/pom.xml -P myjson -Dinvoker.streamLogs=true -Dmodernizer.skip=true -Dianal.phase=none -Drat.skip=true -Dcheckstyle.skip=true -Djacoco.skip=true
diff --git a/core/persistence-jpa-json/pom.xml b/core/persistence-jpa-json/pom.xml
index 935d3af..9c43f87 100644
--- a/core/persistence-jpa-json/pom.xml
+++ b/core/persistence-jpa-json/pom.xml
@@ -187,7 +187,7 @@ under the License.
</profile>
<profile>
- <id>postgres</id>
+ <id>pgjsonb</id>
<dependencies>
<dependency>
@@ -303,7 +303,7 @@ under the License.
</profile>
<profile>
- <id>mysql</id>
+ <id>myjson</id>
<dependencies>
<dependency>