chore: migrate build to 2024.2 #10
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 workflow will run Integration Tests | |
name: Integration Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-20.04 | |
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 | |
- name: Run minikube cluster | |
run: | | |
sudo apt-get install conntrack | |
curl -sLo minikube "$(curl -sL https://api.github.com/repos/kubernetes/minikube/releases/latest | jq -r '[.assets[] | select(.name == "minikube-linux-amd64")] | first | .browser_download_url')" | |
chmod +x minikube | |
sudo mv minikube /bin/ | |
minikube config set vm-driver docker | |
make run-local | |
- name: Run integration tests | |
run: | | |
export DISPLAY=:99.0 | |
Xvfb -ac :99 -screen 0 1920x1080x16 & | |
sleep 10 | |
./gradlew integrationTest --info | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ runner.os }}-integration-test-reports | |
path: build/reports/tests/integrationTest | |
if: always() | |
- name: Archiving screenshots | |
uses: actions/upload-artifact@v4 | |
with: | |
name: screenshots | |
path: | | |
build/screenshots/* |