From 48c39f636b94e6e568b8e0ac61bde552ff08669a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Adler?= Date: Tue, 12 Nov 2024 09:38:52 +0100 Subject: [PATCH] use newer ubuntu --- .github/workflows/ci.yml | 88 +++++++++++++++++++++------------------- 1 file changed, 47 insertions(+), 41 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02662ac..3faf67b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,49 +5,55 @@ on: [ push, pull_request ] env: MAVEN_OPTS: -Xmx1024M -Xss128M -XX:+CMSClassUnloadingEnabled SELENIUM_DRIVER: "chrome" - SELENIUM_DRIVER_ARGS: "--headless window-size=1280,1024 --no-sandbox" + SELENIUM_DRIVER_ARGS: "no-sandbox ignore-certificate-errors remote-allow-origins=* disable-popup-blocking disable-default-apps disable-extensions-file-access-check disable-infobars disable-dev-shm-usage disable-gpu disable-search-engine +-choice-screen accept-lang=de-DE headless=new window-size=1280,1024" jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up JDK - uses: actions/setup-java@v2 - with: - java-version: 11 - distribution: adopt - - - name: Set up test dependencies - run: | - sudo apt update - sudo apt install chromium-browser ffmpeg - - - name: Restore Maven cache - uses: skjolber/maven-cache-github-action@v1 - with: - step: restore - - - name: Build - run: | - mkdir ~/tmp - export TMPDIR=~/tmp - - mvn -B clean install - - - name: Upload logs on build failure - if: failure() - uses: actions/upload-artifact@v4 - with: - name: test-results - path: | - ./**/surefire-reports - ./**/result - - - name: Save Maven cache - uses: skjolber/maven-cache-github-action@v1 - with: - step: save + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: 11 + distribution: adopt + + - name: Set up chrome + uses: browser-actions/setup-chrome@v1 + with: + chrome-version: stable + + - name: Set up test dependencies + run: | + sudo apt update + sudo apt install ffmpeg + + - name: Restore Maven cache + uses: skjolber/maven-cache-github-action@v1 + with: + step: restore + + - name: Build + run: | + mkdir ~/tmp + export TMPDIR=~/tmp + + mvn -B clean install + + - name: Upload logs on build failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: | + ./**/surefire-reports + ./**/result + + - name: Save Maven cache + uses: skjolber/maven-cache-github-action@v1 + with: + step: save