|
| 1 | +# |
| 2 | +# Copyright (C) 2015 Red Hat, Inc. |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +# |
| 16 | + |
| 17 | +name: E2E osci.io Tests |
| 18 | + |
| 19 | +on: |
| 20 | + workflow_dispatch: |
| 21 | + schedule: |
| 22 | + - cron: '0 4 * * *' # Every day at 4am |
| 23 | + |
| 24 | +concurrency: |
| 25 | + group: single-instance-for-persistent-cluster |
| 26 | + cancel-in-progress: true |
| 27 | + |
| 28 | +env: |
| 29 | + IT_MODULE: kubernetes-itests |
| 30 | + MAVEN_ARGS: -B -C -V -ntp -Dhttp.keepAlive=false -e |
| 31 | + FAILSAFE_TEST_GROUPS: OSCI |
| 32 | + |
| 33 | +jobs: |
| 34 | + e2e: |
| 35 | + name: E2E OpenShift 4 |
| 36 | + runs-on: ubuntu-latest |
| 37 | + if: github.repository == 'fabric8io/kubernetes-client' |
| 38 | + steps: |
| 39 | + - name: Checkout |
| 40 | + uses: actions/checkout@v4 |
| 41 | + - name: Setup Java 17 |
| 42 | + uses: actions/setup-java@v4 |
| 43 | + with: |
| 44 | + java-version: '17' |
| 45 | + distribution: 'temurin' |
| 46 | + - name: Install oc |
| 47 | + uses: redhat-actions/oc-installer@v1 |
| 48 | + - name: Login to OpenShift |
| 49 | + run: | |
| 50 | + oc login --server=${{ secrets.OSCI_SERVER }} --token=${{ secrets.OSCI_TOKEN }} |
| 51 | + - name: Run Integration Tests |
| 52 | + run: | |
| 53 | + ./mvnw ${MAVEN_ARGS} -Pitests -pl $IT_MODULE -Dgroups=$FAILSAFE_TEST_GROUPS verify |
0 commit comments