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
parent
331f79430d
commit
dad104e5d7
|
@ -19,9 +19,9 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
java: [ '17', '21', 'profile-j21' ]
|
java: [ '17', '21', 'profile-j21' ]
|
||||||
maven: [ '3.9.6' ]
|
maven: [ '3.9.9' ]
|
||||||
python: [ '3.12' ]
|
python: [ '3.12' ]
|
||||||
os: [ 'ubuntu-22.04' ]
|
os: [ 'ubuntu-24.04' ]
|
||||||
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
|
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -119,3 +119,15 @@ jobs:
|
||||||
title: CheckStyle Violations
|
title: CheckStyle Violations
|
||||||
path: '**/checkstyle-result.xml'
|
path: '**/checkstyle-result.xml'
|
||||||
mode: inline
|
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
|
||||||
|
|
|
@ -11,6 +11,6 @@ bin/
|
||||||
bundles/**/src/main/history
|
bundles/**/src/main/history
|
||||||
features/**/src/main/history
|
features/**/src/main/history
|
||||||
features/**/src/main/feature
|
features/**/src/main/feature
|
||||||
npm-debug.log
|
*.log
|
||||||
node_modules/
|
node_modules/
|
||||||
.idea
|
.idea
|
||||||
|
|
Loading…
Reference in New Issue