Bump actions/github-script from 6 to 7 #163
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: Integration tests | |
on: | |
pull_request: | |
types: [ labeled ] | |
jobs: | |
test: | |
if: ${{ github.event.label.name == 'run-all-tests' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
if: github.event_name == 'pull_request' | |
uses: styfle/[email protected] | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Setup Minikube | |
uses: manusa/[email protected] | |
with: | |
minikube version: 'v1.24.0' | |
kubernetes version: 'latest' | |
start args: '--addons=registry,storage,ingress --insecure-registry "10.0.0.0/24" --insecure-registry "localhost:5000" --extra-config=kubeadm.ignore-preflight-errors=SystemVerification --extra-config=apiserver.authorization-mode=RBAC,Node' | |
- name: Build and push images | |
run: | | |
mvn package -pl operator,sync -am -Pimage-test-push --no-transfer-progress -Dquarkus.kubernetes.resources.requests.cpu=50m -Dquarkus.kubernetes.resources.requests.memory=128Mi | |
- name: Run test | |
run: | | |
mvn verify -P systemtest -pl systemtest -am --no-transfer-progress | |
- name: Archive results | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: artifacts | |
path: systemtest/target/logs/ |