Skip to content

RESTEasy Cloud Tests #285

RESTEasy Cloud Tests

RESTEasy Cloud Tests #285

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: RESTEasy Cloud Tests
on:
pull_request:
branches:
- '**'
paths:
- '.github/workflows/cloud-tests.yml'
- 'providers/**'
- 'resteasy-bom/**'
- 'resteasy-cdi/**'
- 'resteasy-client/**'
- 'resteasy-client-api/**'
- 'resteasy-client-utils/**'
- 'resteasy-core/**'
- 'resteasy-core-spi/**'
- 'resteasy-dependencies-bom/**'
- 'resteasy-feature-pack/**'
- 'resteasy-security/**'
- 'testsuite/cloud-tests/**'
schedule:
- cron: '0 0 * * *' # Every day at 00:00 UTC
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
cloud-tests:
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
java: ['17']
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Setup minikube
id: minikube
uses: manusa/[email protected]
with:
driver: docker
container runtime: containerd
minikube version: 'v1.31.2'
# Downgrade K8s since 1.25 has some problems with https
kubernetes version: 'v1.28.1'
github token: ${{ secrets.GITHUB_TOKEN }}
start args: "--memory='4gb' --cpus='2'"
- name: Enable minikube registry
run: |
minikube addons enable registry
kubectl port-forward --namespace kube-system service/registry 5000:80 &
- name: Cloud Tests - JDK ${{ matrix.java }}
run: |
mvn clean install -Pcloud-tests -pl resteasy-feature-pack/common,resteasy-feature-pack/galleon-feature-pack,testsuite/cloud-tests -amd -am '-Ddebug.logs' '-Pjakarta-staging'
- uses: actions/upload-artifact@v4
if: failure()
with:
name: surefire-reports-${{ matrix.os }}-${{ matrix.java }}
path: |
'**/surefire-reports/*'
'**/failsafe-reports/*'