From dbc10ae1048208799f54dd297354dffe064f4215 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 24 Oct 2024 22:23:08 +0200 Subject: [PATCH] GitHub Actions upgrades and improvements (#17627) * Use Maven 3.9.9 * Use Ubuntu 24.04 * Verify there are no changed files Signed-off-by: Wouter Born Signed-off-by: Ciprian Pascu --- .github/workflows/ci-build.yml | 16 ++++++++++++++-- .gitignore | 3 +-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 8c68952d38f..d95c2d22de2 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -19,8 +19,8 @@ jobs: fail-fast: false matrix: java: [ '17', '21', 'profile-j21' ] - maven: [ '3.9.6' ] - os: [ 'ubuntu-22.04' ] + maven: [ '3.9.9' ] + os: [ 'ubuntu-24.04' ] name: Build (Java ${{ matrix.java }}, ${{ matrix.os }}) runs-on: ${{ matrix.os }} steps: @@ -121,3 +121,15 @@ jobs: title: CheckStyle Violations path: '**/checkstyle-result.xml' mode: inline + + - name: Verify Changed Files + uses: tj-actions/verify-changed-files@v20 + id: verify-changed-files + + - name: Fail on Changed Files + if: steps.verify-changed-files.outputs.changed_files != '' + env: + CHANGED_FILES: ${{ steps.verify-changed-files.outputs.changed_files }} + run: | + echo "::error::Files have changed: $CHANGED_FILES" + exit 1 diff --git a/.gitignore b/.gitignore index 93f8fcbb620..95de5ec9f4d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,7 @@ .DS_Store .gradle *.iml -npm-debug.log -.build.log +*.log .metadata/ bin/