From b65e5ef9108b217f23e9eac6c02814b725d679ce Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sat, 26 Oct 2024 17:49:53 +0200 Subject: [PATCH] GitHub Actions upgrades and improvements (#1695) * Use Maven 3.9.9 * Use Ubuntu 24.04 * Verify there are no changed files Signed-off-by: Wouter Born --- .github/workflows/ci-build.yml | 16 ++++++++++++++-- .gitignore | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 70bc05ee42..9d6d4d4887 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: @@ -91,3 +91,15 @@ jobs: with: name: build-log-java-${{ matrix.java }}-${{ matrix.os }} path: build.log + + - 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 13897fb9f7..76ec00a317 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .vscode .DS_Store *.iml +*.log .gradle maven-metadata-local.xml Californium.properties