From 43750c94de9baa6af79dc659e3ac8febd8c16337 Mon Sep 17 00:00:00 2001 From: Max Thonagel <12283268+thoniTUB@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:14:06 +0200 Subject: [PATCH] updates gh actions Signed-off-by: Max Thonagel <12283268+thoniTUB@users.noreply.github.com> --- .github/workflows/codeql-analysis.yml | 8 +++++--- .github/workflows/test_cypress.yml | 16 ++++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 570eb425f6..4b05fbcff8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,10 +44,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: set java 17 - uses: actions/setup-java@v1 + - name: Set up JDK + uses: actions/setup-java@v2 with: - java-version: 17 + distribution: 'temurin' + java-version: '17' + overwrite-settings: false # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/test_cypress.yml b/.github/workflows/test_cypress.yml index cabccfb095..4f9bf8f7a1 100644 --- a/.github/workflows/test_cypress.yml +++ b/.github/workflows/test_cypress.yml @@ -17,14 +17,14 @@ jobs: timeout-minutes: 10 steps: - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true @@ -34,9 +34,11 @@ jobs: node-version: 18 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 17 + distribution: 'temurin' + java-version: '17' + overwrite-settings: false - name: Build Backend run: ./scripts/build_backend_no_version.sh @@ -53,14 +55,16 @@ jobs: start: bash ./scripts/run_e2e_all.sh wait-on: "http://localhost:8000" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-screenshots path: cypress/screenshots + if-no-files-found: ignore - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: failure() with: name: cypress-videos path: cypress/videos + if-no-files-found: ignore