You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2022/11/10 13:46:31 UTC

[cayenne] 01/01: Test GitHub actions

This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch github-action-test
in repository https://gitbox.apache.org/repos/asf/cayenne.git

commit 12d79669a0b49f2c88f9f83563387857a9d4cc1d
Author: Nikita Timofeev <st...@gmail.com>
AuthorDate: Thu Nov 10 16:46:19 2022 +0300

    Test GitHub actions
---
 .github/workflows/verify-deploy-on-push.yml | 50 +++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/.github/workflows/verify-deploy-on-push.yml b/.github/workflows/verify-deploy-on-push.yml
new file mode 100644
index 000000000..df0c63414
--- /dev/null
+++ b/.github/workflows/verify-deploy-on-push.yml
@@ -0,0 +1,50 @@
+# 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
+#
+# https://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: build and test
+
+on: [push]
+
+jobs:
+
+  test:
+    runs-on: ubuntu-latest
+    name: JDK ${{ matrix.jdk }}, DB ${{ matrix.db-profile }}
+    continue-on-error: ${{ matrix.jdk == '19' }}
+    if: github.repository == 'apache/cayenne'
+    strategy:
+      matrix:
+        jdk: [11, 17]
+        db-profile: [hsql, h2, derby, mysql-tc, postgres-tc, sqlserver-tc]
+        include:
+          - jdk: 19
+            db-profile: postgres-tc
+      fail-fast: false # finish all jobs anyway
+    env:
+      JDK_VERSION: ${{ matrix.jdk }}
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v2
+
+      - name: Setup java
+        uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: ${{ matrix.java }}
+          cache: 'maven'
+
+      - name: mvn verify ${{ matrix.db-profile }}
+        run: mvn verify -q -DcayenneTestConnection=${{ matrix.db-profile }} -DcayenneLogLevel=ERROR -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
\ No newline at end of file