feat: support debug on Podman (#685) #1428
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
# Main CI | |
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
configure_sonar: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- name: Save Sonar config on PR | |
run: | | |
mkdir -p ./prInfo | |
echo ${{ github.event.number }} > ./prInfo/PR | |
echo ${{ github.base_ref }} > ./prInfo/base_ref | |
echo ${{ github.head_ref }} > ./prInfo/head_ref | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: prInfo | |
path: prInfo/ | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build --continue --no-daemon | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: ${{ matrix.os }}-test-reports | |
path: | | |
build/test-results/**/*.xml | |
build/jacoco/ | |
kubernetes-integration-tests: | |
runs-on: ubuntu-latest | |
needs: ci | |
steps: | |
- uses: actions/checkout@v4 | |
# TODO remove locally building common-ui-test-library after new release of common-ui-test-library | |
- name: 'Clone common-ui-test-library to Maven Local repository' | |
run: | | |
git clone --branch 174 https://github.com/richard0202/intellij-common-ui-test-library.git ../common-ui-test-library | |
- uses: burrunan/gradle-cache-action@3bf23b8dd95e7d2bacf2470132454fe893a178a1 #v1 | |
name: Build common-ui-test-library | |
with: | |
build-root-directory: ../common-ui-test-library | |
arguments: publishToMavenLocal | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 #v3.1.0 | |
- uses: helm/kind-action@99576bfa6ddf9a8e612d83b513da5a75875caced #v1.9.0 | |
name: Start cluster | |
with: | |
version: v0.11.1 | |
- name: Setup cluster | |
run: | | |
curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.19.1/install.sh | bash -s v0.19.1 | |
kubectl create -f https://operatorhub.io/install/service-binding-operator.yaml | |
kubectl create -f https://operatorhub.io/install/stable/cloud-native-postgresql.yaml | |
nb=0 | |
echo -n "Waiting for operator to show up " | |
while [ "$nb" != "2" ] | |
do | |
echo -n "." | |
sleep 1 | |
nb=`kubectl get pods -n operators --no-headers --ignore-not-found | grep Running | wc -l` | |
done | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Play integration tests | |
run: ./gradlew integrationTest --continue --no-daemon | |
#- name: Play integration UI tests | |
# run: | | |
# echo "${{ secrets.IDEA_KEY_PASSPHRASE }}" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output idea_license_token/idea.key idea_license_token/idea.key.gpg | |
# export DISPLAY=:99.0 | |
# Xvfb -ac :99 -screen 0 1920x1080x16 & | |
# sleep 10 | |
# ./gradlew integrationUITest --info --continue | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: kubernetes-integration-tests-reports | |
path: | | |
build/test-results/**/*.xml | |
build/jacoco/ |