This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/flink-connector-redis-streams.git
The following commit(s) were added to refs/heads/main by this push:
new 6dd6c07 [hotfix] Sync CI setup
6dd6c07 is described below
commit 6dd6c07a3b8f3a368d75ad7dae77afee5ceff56a
Author: Chesnay Schepler <[email protected]>
AuthorDate: Tue Dec 13 11:35:23 2022 +0100
[hotfix] Sync CI setup
---
.github/workflows/{ci.yaml => push_pr.yml} | 36 ++++++++---------------------
.github/workflows/{ci.yaml => weekly.yml} | 37 +++++++++---------------------
2 files changed, 20 insertions(+), 53 deletions(-)
diff --git a/.github/workflows/ci.yaml b/.github/workflows/push_pr.yml
similarity index 52%
copy from .github/workflows/ci.yaml
copy to .github/workflows/push_pr.yml
index 6b01163..e5d6b2a 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/push_pr.yml
@@ -16,33 +16,15 @@
# limitations under the License.
################################################################################
-name: Build flink-connector-redis
+name: CI
on: [push, pull_request]
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
jobs:
compile_and_test:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- jdk: [8, 11]
- env:
- MVN_CONNECTION_OPTIONS: -Dhttp.keepAlive=false
-Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- steps:
- - run: echo "Running CI pipeline for JDK version ${{ matrix.jdk }}"
-
- - name: Check out repository code
- uses: actions/checkout@v2
-
- - name: Set JDK
- uses: actions/setup-java@v2
- with:
- java-version: ${{ matrix.jdk }}
- distribution: 'temurin'
- cache: 'maven'
-
- - name: Set Maven 3.8.5
- uses: stCarolas/[email protected]
- with:
- maven-version: 3.8.5
-
- - name: Compile and test flink-connector-redis
- run: mvn clean install -Dscala-2.12 -Dflink.convergence.phase=install
-Pcheck-convergence -U -B ${{ env.MVN_CONNECTION_OPTIONS }}
+ uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
+ with:
+ flink_version: 1.16.0
+ flink_url:
https://dist.apache.org/repos/dist/release/flink/flink-1.16.0/flink-1.16.0-bin-scala_2.12.tgz
+ cache_flink_binary: true
diff --git a/.github/workflows/ci.yaml b/.github/workflows/weekly.yml
similarity index 53%
rename from .github/workflows/ci.yaml
rename to .github/workflows/weekly.yml
index 6b01163..619183f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/weekly.yml
@@ -16,33 +16,18 @@
# limitations under the License.
################################################################################
-name: Build flink-connector-redis
-on: [push, pull_request]
+name: Nightly
+on:
+ schedule:
+ - cron: "0 0 * * 0"
jobs:
compile_and_test:
- runs-on: ubuntu-latest
+ if: github.repository_owner == 'apache'
strategy:
matrix:
- jdk: [8, 11]
- env:
- MVN_CONNECTION_OPTIONS: -Dhttp.keepAlive=false
-Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- steps:
- - run: echo "Running CI pipeline for JDK version ${{ matrix.jdk }}"
-
- - name: Check out repository code
- uses: actions/checkout@v2
-
- - name: Set JDK
- uses: actions/setup-java@v2
- with:
- java-version: ${{ matrix.jdk }}
- distribution: 'temurin'
- cache: 'maven'
-
- - name: Set Maven 3.8.5
- uses: stCarolas/[email protected]
- with:
- maven-version: 3.8.5
-
- - name: Compile and test flink-connector-redis
- run: mvn clean install -Dscala-2.12 -Dflink.convergence.phase=install
-Pcheck-convergence -U -B ${{ env.MVN_CONNECTION_OPTIONS }}
+ flink: [1.16-SNAPSHOT, 1.17-SNAPSHOT]
+ uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
+ with:
+ flink_version: ${{ matrix.flink }}
+ flink_url: https://s3.amazonaws.com/flink-nightly/flink-${{ matrix.flink
}}-bin-scala_2.12.tgz
+ cache_flink_binary: false