Quarkus CI - Kubernetes #570
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quarkus CI - Kubernetes | |
on: | |
workflow_dispatch: | |
schedule: | |
# 2am every weekday + saturday | |
- cron: '0 2 * * 1-6' | |
env: | |
MAVEN_ARGS: -B -e | |
jobs: | |
cache: | |
name: Build and save artifacts | |
runs-on: ubuntu-latest | |
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install artifacts | |
run: ./mvnw ${MAVEN_ARGS} -DskipTests -DskipITs -Dinvoker.skip clean install -pl :quarkus-integration-test-kubernetes-invoker -am | |
- name: Tar Maven repository | |
shell: bash | |
run: tar -I 'pigz -9' -cf maven-repo.tgz -C ~ .m2/repository | |
- name: Persist Maven repository | |
uses: actions/upload-artifact@v4 | |
with: | |
name: maven-repo | |
path: maven-repo.tgz | |
retention-days: 1 | |
kubernetes: | |
name: Kubernetes Integration Tests | |
needs: cache | |
runs-on: ubuntu-latest | |
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'" | |
strategy: | |
fail-fast: false | |
matrix: | |
kubernetes: [v1.20.1] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Download Maven repository | |
uses: actions/download-artifact@v4 | |
with: | |
name: maven-repo | |
path: . | |
- name: Extract Maven repository | |
shell: bash | |
run: tar -xzf maven-repo.tgz -C ~ | |
- name: Set up Minikube-Kubernetes | |
uses: manusa/[email protected] | |
with: | |
minikube version: v1.16.0 | |
kubernetes version: ${{ matrix.kubernetes }} | |
github token: ${{ secrets.GITHUB_TOKEN }} | |
start args: '--addons=metrics-server --force' | |
- name: Quay login | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_QUARKUSCI_USERNAME }} | |
password: ${{ secrets.QUAY_QUARKUSCI_PASSWORD }} | |
- name: Run Kubernetes Invoker Tests | |
run: | | |
export QUARKUS_CONTAINER_IMAGE_GROUP=quarkustesting | |
export QUARKUS_CONTAINER_IMAGE_TAG=${{ github.sha }} | |
export QUARKUS_CONTAINER_IMAGE_REGISTRY=quay.io | |
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-kubernetes-invoker -De2e-tests -Dkubernetes-e2e-tests | |
- name: Report status | |
if: "always() && github.repository == 'quarkusio/quarkus'" | |
shell: bash | |
run: | | |
curl -Ls https://sh.jbang.dev | bash -s - app setup | |
~/.jbang/bin/jbang .github/NativeBuildReport.java \ | |
issueNumber=26581 \ | |
runId=${{ github.run_id }} \ | |
status=${{ job.status }} \ | |
token=${{ secrets.GITHUB_API_TOKEN }} \ | |
issueRepo=${{ github.repository }} \ | |
thisRepo=${{ github.repository }} | |
knative: | |
name: Knative Integration Tests | |
needs: cache | |
runs-on: ubuntu-latest | |
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'" | |
strategy: | |
fail-fast: false | |
matrix: | |
kubernetes: [v1.20.1] | |
knative: [v1.2.0] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Download Maven repository | |
uses: actions/download-artifact@v4 | |
with: | |
name: maven-repo | |
path: . | |
- name: Extract Maven repository | |
shell: bash | |
run: tar -xzf maven-repo.tgz -C ~ | |
- name: Kubernetes KinD Cluster | |
uses: container-tools/kind-action@v2 | |
with: | |
version: v0.11.1 | |
registry: true | |
kubectl_version: ${{ matrix.kubernetes }} | |
knative_serving: ${{ matrix.knative }} | |
- name: Run Knative Invoker Tests | |
run: | | |
kubectl create namespace knative-tests | |
kubectl config set-context --current --namespace=knative-tests | |
export QUARKUS_CONTAINER_IMAGE_GROUP=quarkustesting | |
export QUARKUS_CONTAINER_IMAGE_TAG=${{ github.sha }} | |
export QUARKUS_CONTAINER_IMAGE_REGISTRY=$KIND_REGISTRY | |
export QUARKUS_CONTAINER_IMAGE_INSECURE=true | |
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-kubernetes-invoker -De2e-tests -Dknative-e2e-tests | |
- name: Report status | |
if: "always() && github.repository == 'quarkusio/quarkus'" | |
shell: bash | |
run: | | |
curl -Ls https://sh.jbang.dev | bash -s - app setup | |
~/.jbang/bin/jbang .github/NativeBuildReport.java \ | |
issueNumber=31837 \ | |
runId=${{ github.run_id }} \ | |
status=${{ job.status }} \ | |
token=${{ secrets.GITHUB_API_TOKEN }} \ | |
issueRepo=${{ github.repository }} \ | |
thisRepo=${{ github.repository }} | |
openshift: | |
name: OpenShift Integration Tests | |
needs: cache | |
runs-on: ubuntu-20.04 | |
if: "github.repository == 'quarkusio/quarkus' || github.event_name == 'workflow_dispatch'" | |
strategy: | |
fail-fast: false | |
matrix: | |
openshift: [v3.11.0] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Download Maven repository | |
uses: actions/download-artifact@v4 | |
with: | |
name: maven-repo | |
path: . | |
- name: Extract Maven repository | |
shell: bash | |
run: tar -xzf maven-repo.tgz -C ~ | |
- name: Set up OpenShift | |
uses: manusa/[email protected] | |
with: | |
oc version: ${{ matrix.openshift }} | |
github token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Quay login | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_QUARKUSCI_USERNAME }} | |
password: ${{ secrets.QUAY_QUARKUSCI_PASSWORD }} | |
- name: Run OpenShift Invoker Tests | |
run: | | |
export QUARKUS_CONTAINER_IMAGE_GROUP=quarkustesting | |
export QUARKUS_CONTAINER_IMAGE_TAG=${{ github.sha }} | |
export QUARKUS_CONTAINER_IMAGE_REGISTRY=quay.io | |
export QUARKUS_CONTAINER_IMAGE_USERNAME=${{ secrets.QUAY_QUARKUSCI_USERNAME }} | |
export QUARKUS_CONTAINER_IMAGE_PASSWORD=${{ secrets.QUAY_QUARKUSCI_PASSWORD }} | |
./mvnw ${MAVEN_ARGS} clean install -pl :quarkus-integration-test-kubernetes-invoker -De2e-tests -Dopenshift-e2e-tests | |
- name: Report status | |
if: "always() && github.repository == 'quarkusio/quarkus'" | |
shell: bash | |
run: | | |
curl -Ls https://sh.jbang.dev | bash -s - app setup | |
~/.jbang/bin/jbang .github/NativeBuildReport.java \ | |
issueNumber=26582 \ | |
runId=${{ github.run_id }} \ | |
status=${{ job.status }} \ | |
token=${{ secrets.GITHUB_API_TOKEN }} \ | |
issueRepo=${{ github.repository }} \ | |
thisRepo=${{ github.repository }} |