GitHub Actions upgrades and improvements (#4422)

* Use Maven 3.9.9
* Use Ubuntu 24.04
* Verify there are no changed files

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2024-10-24 20:01:28 +02:00 committed by GitHub
parent a22349abf4
commit 1f8155c330
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View File

@ -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:
@ -112,3 +112,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

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ bin/
.metadata/
*/plugin.xml_gen
.DS_Store
build.log
*.iml
.idea/
.gradle/