GitHub Actions upgrades and improvements (#2830)

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

This will help preventing issues like:

* https://github.com/openhab/openhab-webui/issues/20
* https://github.com/openhab/openhab-webui/issues/107
* https://github.com/openhab/openhab-webui/issues/241
* https://github.com/openhab/openhab-webui/issues/2814

Signed-off-by: Wouter Born <github@maindrain.net>
pull/2831/head
Wouter Born 2024-10-24 20:23:03 +02:00 committed by GitHub
parent 331f79430d
commit dad104e5d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 3 deletions

View File

@ -19,9 +19,9 @@ jobs:
fail-fast: false
matrix:
java: [ '17', '21', 'profile-j21' ]
maven: [ '3.9.6' ]
maven: [ '3.9.9' ]
python: [ '3.12' ]
os: [ 'ubuntu-22.04' ]
os: [ 'ubuntu-24.04' ]
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
@ -119,3 +119,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

2
.gitignore vendored
View File

@ -11,6 +11,6 @@ bin/
bundles/**/src/main/history
features/**/src/main/history
features/**/src/main/feature
npm-debug.log
*.log
node_modules/
.idea