separate Kubernetes Tests to separate job
@@ -62,18 +62,40 @@ jobs:
docker push apicurio/apicurio-registry-streams:latest-snapshot
docker push apicurio/apicurio-registry-asyncmem:latest-snapshot
+ kubernetes-tests:
+ name: Kubernetes Tests
+ runs-on: ubuntu-18.04
+ needs: ["build-verify"]
+ if: github.repository_owner == 'Apicurio' && github.event_name == 'push' && github.ref == 'refs/heads/master'
+ steps:
+ - name: Checkout Code
+ uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: AdoptOpenJDK/install-jdk@v1
+ with:
+ version: '8'
+ architecture: x64
+ - name: Cache Dependencies
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+
+ - name: Build Converters Distro (used in testsuite)
+ run: mvn install -pl distro/connect-converter -am -DskipTests -Dmaven.javadoc.skip=true --no-transfer-progress
+
- name: Kubernetes Tests
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: ./.github/scripts/test_apicurio_kubernetes.sh
- name: Collect logs
- if: github.event_name == 'push' && github.ref == 'refs/heads/master' && failure()
+ if: failure()
run: ./.github/scripts/collect_kubernetes_logs.sh
- name: Upload tests logs artifacts
- if: github.event_name == 'push' && github.ref == 'refs/heads/master' && failure()
+ if: failure()
uses: actions/upload-artifact@v1.0.0
with:
name: tests-logs
path: artifacts
-
