-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OpenShift integration and restore itegration tests (#1339)
Updating OpenShift integration, restoring related functional tests and add an OpenShift (v3) execution to the GitHub workflow, to enable OpenShift functional tests execution in CI checks.
- Loading branch information
Showing
64 changed files
with
1,041 additions
and
631 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,19 @@ env: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 90 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: ['11'] | ||
target: ['docker', 'kubernetes'] | ||
target: ['docker', 'kubernetes', 'openshift'] | ||
env: | ||
# failsafe.groups configuration depends on the env setup. | ||
FAILSAFE_GROUPS: '' | ||
steps: | ||
- name: Checkout arquillian-cube | ||
uses: actions/checkout@v4 | ||
- name: Setup Minikube | ||
if: ${{ matrix.target == 'kubernetes' }} | ||
uses: manusa/[email protected] | ||
|
@@ -41,22 +43,39 @@ jobs: | |
run: | | ||
minikube addons enable registry | ||
kubectl port-forward --namespace kube-system service/registry 5000:80 & | ||
- name: Checkout arquillian-cube | ||
uses: actions/checkout@v4 | ||
- uses: actions/cache@v4 | ||
- name: Setup OpenShift | ||
if: ${{ matrix.target == 'openshift' }} | ||
uses: manusa/[email protected] | ||
with: | ||
oc version: 'v3.10.0' | ||
github token: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Setup OLM on OpenShift v3.z | ||
# if: ${{ matrix.target == 'openshift' }} | ||
# run: | | ||
# set -x | ||
# # operator-sdk must be installed manually on OpenShift v3 | ||
# oc version | ||
# oc create -f https://github.com/operator-framework/operator-lifecycle-manager/tree/master/deploy/upstream/manifests/0.6.0/ | ||
# # OR... | ||
# export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac) | ||
# export OS=$(uname | awk '{print tolower($0)}') | ||
# export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/v1.37.0 | ||
# curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH} | ||
# chmod +x operator-sdk_${OS}_${ARCH} && sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk | ||
# operator-sdk olm install | ||
- name: Cache .m2 registry | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
key: cache-e2e-${{ github.sha }}-${{ github.run_id }} | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'adopt' | ||
distribution: 'temurin' | ||
- name: Maven pre-fetch dependencies ${{ matrix.java }} | ||
run: | | ||
./mvnw clean package -q -U -DskipTests # pre-fetch dependencies | ||
./mvnw clean install -q -U -DskipTests | ||
- name: Build and run integration tests for Docker target (${{ matrix.java }}) | ||
if: ${{ matrix.target == 'docker' }} | ||
run: | | ||
|
@@ -65,6 +84,10 @@ jobs: | |
if: ${{ matrix.target == 'kubernetes' }} | ||
run: | | ||
./mvnw verify -Dfailsafe.groups=org.arquillian.cube.kubernetes.impl.requirement.RequiresKubernetes -Dcontainerless.skip.tests=true | ||
- name: Build and run integration tests for OpenShift target (${{ matrix.java }}) | ||
if: ${{ matrix.target == 'openshift' }} | ||
run: | | ||
./mvnw verify -pl openshift -amd -Dfailsafe.groups=org.arquillian.cube.openshift.impl.requirement.RequiresOpenshift -Dfailsafe.excludedGroups=org.arquillian.cube.openshift.impl.requirement.RequiresOpenshift4 -Dcontainerless.skip.tests=true | ||
- uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
|
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
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
20 changes: 0 additions & 20 deletions
20
...va/org/eclipse/jkube/maven/plugin/build/OpenshiftMavenPluginResourceGeneratorBuilder.java
This file was deleted.
Oops, something went wrong.
141 changes: 0 additions & 141 deletions
141
fabric8-maven-plugin-build/src/test/resources/spring-boot-http-booster/pom.xml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.