This is an automated email from the ASF dual-hosted git repository. ntimofeev pushed a commit to branch STABLE-4.0 in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/STABLE-4.0 by this push: new 1736f4f11 Enable GitHub actions 1736f4f11 is described below commit 1736f4f11ff7d435d4f43b09c84e6beb64673f9a Author: Nikita Timofeev <stari...@gmail.com> AuthorDate: Tue Nov 15 15:24:22 2022 +0300 Enable GitHub actions --- .github/workflows/verify-on-pr-4.0.yml | 50 ++++++++++++++++++++++++++++++++ .github/workflows/verify-on-push-4.0.yml | 49 +++++++++++++++++++++++++++++++ .travis.yml | 49 ------------------------------- 3 files changed, 99 insertions(+), 49 deletions(-) diff --git a/.github/workflows/verify-on-pr-4.0.yml b/.github/workflows/verify-on-pr-4.0.yml new file mode 100644 index 000000000..fdd1fe4a0 --- /dev/null +++ b/.github/workflows/verify-on-pr-4.0.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: verify PR 4.0 + +on: pull_request + +env: + MAVEN_OPTS: -Xmx4g -Xms1g -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 + +jobs: + test: + runs-on: ubuntu-latest + name: JDK ${{ matrix.jdk }}, DB ${{ matrix.db-profile }} + if: github.repository == 'apache/cayenne' + + strategy: + matrix: + jdk: [8, 11] + db-profile: [hsql, h2, derby, mysql-docker, postgres-docker, sqlserver-docker] + fail-fast: true + + env: + JDK_VERSION: ${{ matrix.jdk }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + cache: 'maven' + + - name: mvn verify ${{ matrix.db-profile }} + run: mvn verify -q -DcayenneTestConnection=${{ matrix.db-profile }} -DcayenneLogLevel=ERROR \ No newline at end of file diff --git a/.github/workflows/verify-on-push-4.0.yml b/.github/workflows/verify-on-push-4.0.yml new file mode 100644 index 000000000..8cb7ee30f --- /dev/null +++ b/.github/workflows/verify-on-push-4.0.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 +# +# 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: verify 4.0 + +on: push + +env: + MAVEN_OPTS: -Xmx4g -Xms1g -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.count=3 + +jobs: + verify: + runs-on: ubuntu-latest + name: JDK ${{ matrix.jdk }}, DB ${{ matrix.db-profile }} + + strategy: + matrix: + jdk: [8, 11] + db-profile: [hsql, h2, derby, mysql-docker, postgres-docker, sqlserver-docker] + fail-fast: false # finish all jobs anyway + + env: + JDK_VERSION: ${{ matrix.jdk }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + cache: 'maven' + + - name: mvn verify ${{ matrix.db-profile }} + run: mvn verify -q -DcayenneTestConnection=${{ matrix.db-profile }} -DcayenneLogLevel=ERROR \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f1b8fef76..000000000 --- a/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -# 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. - -# Since 4GB is not enough for the build, we use 'sudo' environment with 7.5GB RAM -# Downside: It's starts a little bit slower -# How to fix: Change build setting or fix code. -# https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments -sudo: required -#group: precise # needed for jdk 7 - -services: - - docker - -language: java - -env: - - DB_PROFILE=hsql - - DB_PROFILE=h2 - - DB_PROFILE=derby - - DB_PROFILE=mysql-docker - - DB_PROFILE=postgres-docker - - DB_PROFILE=sqlserver-docker - -jdk: -# - openjdk7 # disable for now as travis seems dropped support for it - - openjdk8 - - openjdk11 - -script: - - travis_wait 30 mvn verify -q -DcayenneTestConnection=$DB_PROFILE -DcayenneLogLevel=ERROR - -# prevent Travis from unneeded "mvn install" run -install: true - -#cache: -# directories: -# - $HOME/.m2