From 978f0e346bf7285b1724dd325e3ba3f95c0f19c5 Mon Sep 17 00:00:00 2001 From: Yufei Zhang Date: Tue, 10 May 2022 16:27:04 +0800 Subject: [PATCH] 89: setup flink PR checkt pipeline --- .github/workflows/daily-end-to-end-test.yml | 25 +++++++++++++++++++++ .github/workflows/run-pr-check.yml | 20 +++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/daily-end-to-end-test.yml create mode 100644 .github/workflows/run-pr-check.yml diff --git a/.github/workflows/daily-end-to-end-test.yml b/.github/workflows/daily-end-to-end-test.yml new file mode 100644 index 0000000000000..1d4ad642427e8 --- /dev/null +++ b/.github/workflows/daily-end-to-end-test.yml @@ -0,0 +1,25 @@ +name: Daily End to End Test + +on: + schedule: + - cron: 0 1 * * * + workflow_dispatch: +jobs: + sync: + name: Run End to End test for pulsar + runs-on: ubuntu-latest + strategy: + matrix: + branch: + - develop + - relesae-sn-1.14 + - release-sn-1.15 + steps: + - name: Checkout the code + uses: actions/checkout@v2 + with: + ref: ${{ matrix.branch }} + - name: Run e2e Test + run: | + ./mvnw clean install -DskipTests + ./mvnw -pl 'flink-end-to-end-tests/flink-end-to-end-tests-pulsar' test diff --git a/.github/workflows/run-pr-check.yml b/.github/workflows/run-pr-check.yml new file mode 100644 index 0000000000000..3c765bb17a8db --- /dev/null +++ b/.github/workflows/run-pr-check.yml @@ -0,0 +1,20 @@ +name: Run Test for Pull Request + +on: + pull_request: + branches: [ develop, release-sn-** ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout the code + uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Run Unit Test and Install + run: | + ./mvnw -pl 'flink-connectors/flink-connector-pulsar,flink-connectors/flink-sql-connector-pulsar' \ + clean install +