From d099ae44a9c09352f64914c715750db7f8cfef9d Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 13:42:36 +0100 Subject: [PATCH 1/7] Setup minikube --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 415bc90d7e..c8083833ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,10 +18,17 @@ jobs: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | - ${{ runner.os }}-maven- + ${{ runner.os }}-maven- - name: Set up JDK uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} + - name: Set up Minikube + uses: manusa/actions-setup-minikube@v2.0.1 + with: + minikube version: 'v1.13.1' + kubernetes version: 'v1.19.2' + driver: 'docker' - name: Build with Maven - run: mvn -B package -P no-integration-tests --file pom.xml + run: mvn -B package --file pom.xml + From 0ebcf61ca336bd48b05559192fdc6518ec6e98c6 Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 13:44:23 +0100 Subject: [PATCH 2/7] Setup minikube --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8083833ee..387c014286 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: minikube version: 'v1.13.1' kubernetes version: 'v1.19.2' driver: 'docker' + - name: Build with Maven run: mvn -B package --file pom.xml From 11877c69ac93971492b361ce4e056147856d344c Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 13:54:34 +0100 Subject: [PATCH 3/7] set latest minikube version --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 387c014286..28de846743 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,9 @@ jobs: - name: Set up Minikube uses: manusa/actions-setup-minikube@v2.0.1 with: - minikube version: 'v1.13.1' + minikube version: 'v1.15.0' kubernetes version: 'v1.19.2' driver: 'docker' - - name: Build with Maven run: mvn -B package --file pom.xml From d5a2b6a69a19b26a872250a78aa4be3d1fc477c0 Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 14:02:38 +0100 Subject: [PATCH 4/7] add k8s matrix --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28de846743..d8578959ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: java: [8, 11, 15] + kubernetes: ['v1.17','v1.18','v1.19.3'] steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 @@ -27,7 +28,7 @@ jobs: uses: manusa/actions-setup-minikube@v2.0.1 with: minikube version: 'v1.15.0' - kubernetes version: 'v1.19.2' + kubernetes version: ${{ matrix.kubernetes }} driver: 'docker' - name: Build with Maven run: mvn -B package --file pom.xml From 1b0b6d7c07a7f62384acb0827fc0d69a07bf6660 Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 14:30:50 +0100 Subject: [PATCH 5/7] set k8s patch versions --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8578959ae..7e75948fce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: java: [8, 11, 15] - kubernetes: ['v1.17','v1.18','v1.19.3'] + kubernetes: ['v1.17.13','v1.18.12','v1.19.4'] steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 From 7ed2853fde823425fd36125e58b362ed4b237269 Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 14:39:23 +0100 Subject: [PATCH 6/7] Run unit tests before setting up minikube to fail fast. --- .github/workflows/ci.yml | 8 +++++--- pom.xml | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e75948fce..4e3ce74d83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,13 +23,15 @@ jobs: - name: Set up JDK uses: actions/setup-java@v1 with: - java-version: ${{ matrix.java }} + java-version: + - name: Run unit tests + run: mvn -B test -P no-integration-tests --file pom.xml - name: Set up Minikube uses: manusa/actions-setup-minikube@v2.0.1 with: minikube version: 'v1.15.0' kubernetes version: ${{ matrix.kubernetes }} driver: 'docker' - - name: Build with Maven - run: mvn -B package --file pom.xml + - name: Run integration tests + run: mvn -B package -P no-unit-tests --file pom.xml diff --git a/pom.xml b/pom.xml index c4a52170f8..2510289fda 100644 --- a/pom.xml +++ b/pom.xml @@ -152,6 +152,26 @@ + + no-unit-tests + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + + **/*IT.java + + + **/*Test.java + + + + + + release From dbcb8acfadd08023c875b958c3f5f50ddc83a723 Mon Sep 17 00:00:00 2001 From: soroosh Date: Sun, 15 Nov 2020 14:43:41 +0100 Subject: [PATCH 7/7] Run unit tests before setting up minikube to fail fast. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e3ce74d83..9af21ff715 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@v1 with: - java-version: + java-version: ${{ matrix.java }} - name: Run unit tests run: mvn -B test -P no-integration-tests --file pom.xml - name: Set up Minikube