diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 415bc90d7e..9af21ff715 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.13','v1.18.12','v1.19.4'] steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 @@ -18,10 +19,19 @@ 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: Build with Maven - run: mvn -B package -P no-integration-tests --file pom.xml + - 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: 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