From 29c591620376f6574c3b7443dcca4c2c1a96ab96 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Fri, 28 Jan 2022 08:54:21 +1300 Subject: [PATCH] Add build workflow for db2 --- .github/workflows/db2luw.yml | 38 +++++++++++++++++++ .../java/org/integration/ClusterTest.java | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/db2luw.yml diff --git a/.github/workflows/db2luw.yml b/.github/workflows/db2luw.yml new file mode 100644 index 000000000..e63b3d00c --- /dev/null +++ b/.github/workflows/db2luw.yml @@ -0,0 +1,38 @@ + +name: Postgres + +on: + workflow_dispatch: + schedule: + - cron: '10 8 * * 2,5' + +jobs: + build: + + runs-on: ${{ matrix.os }} + permissions: + contents: read + packages: write + strategy: + fail-fast: false + matrix: + java_version: [11] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v2 + - name: Set up Java + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java_version }} + distribution: 'adopt' + - name: Maven cache + uses: actions/cache@v2 + env: + cache-name: maven-cache + with: + path: + ~/.m2 + key: build-${{ env.cache-name }} + - name: db2 + run: mvn clean test -Dprops.file=testconfig/ebean-db2.properties diff --git a/ebean-redis/src/test/java/org/integration/ClusterTest.java b/ebean-redis/src/test/java/org/integration/ClusterTest.java index 6a8dc32ba..64cca33b9 100644 --- a/ebean-redis/src/test/java/org/integration/ClusterTest.java +++ b/ebean-redis/src/test/java/org/integration/ClusterTest.java @@ -114,6 +114,6 @@ public class ClusterTest { } private void allowAsyncMessaging() throws InterruptedException { - Thread.sleep(50); + Thread.sleep(100); } }