Commit Graph

36 Commits (5.0.0)

Author SHA1 Message Date
Florian Hotze bd7eeafbba
Add Maven Wrapper & Use for CI builds (#3251)
This improves DX by adding the ability to use ./mvnw, so you aren't
required to manually install Maven anymore.
It also fixes (rare) issues with platform specific Maven builds (e.g.
https://github.com/codehaus-plexus/plexus-compiler/issues/394).

Also use Maven Wrapper in GitHub Actions CI, which eliminates the need
for the stCarols/setup-maven action.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-07-11 11:41:49 +02:00
Holger Friedrich 70eb1e072a
Use Maven 3.9.10 for CI build (#3219)
See release announcement
https://lists.apache.org/thread/bh8hr89omrbw19ychrklyh3rompn1hj7

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-06-17 15:19:27 +02:00
Holger Friedrich 8423149770
Improve GitHub Actions (#3120)
* upgrade relative-ci/agent-action from 2.1.10 to 2.2.0
https://github.com/relative-ci/agent-action/compare/v2.1.10...v2.2.0
* pin external action relative-ci/agent-action to specific SHA
* pin external action relative-ci/agent-upload-artifact-action to
specific SHA
* set global timeout
* comments

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-04-02 18:22:37 +02:00
Holger Friedrich d714a1cd15
GH Action: Detection of new files (#3111)
This restores the behavior before tj-actions was removed. New untracked
files created during build will break the build.

Follow-up to #3106. Consistent to what we merged on core/distro.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-17 15:25:41 +01:00
Florian Hotze 935d18a1cd
CI Build: Add version comment for stCarlolas/setup-maven action (#3109)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-03-15 18:56:48 +01:00
Florian Hotze e8931b91ca
CI Build: Pin stCarolas/setup-maven action version to commit hash (#3108)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-03-15 17:09:45 +01:00
Holger Friedrich 8e47356342
Replace GH Action from tj-actions by custom code (#3106)
The GitHub Actions build workflow includes external Actions from 3rd
party repositories. The functionality of tj-actions/verify-changed-files
was used to detect modifications of files under source control during
the build process. The external action is removed and replaced by custom
code. This is less flexible, but does not require an external action in
the build toolchain.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-03-15 15:29:55 +01:00
Florian Hotze 0c4c0aae5f
Minor enhancements to Main UI CI job (#3095)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
2025-03-10 00:41:01 +01:00
Holger Friedrich 97b37f6cc9
Fix problem matchers (#2926)
Regression, but introduced with #2925

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-16 08:39:11 +01:00
Holger Friedrich 9cafa80b60
Remove Java 17 build, switch to 21 (#2925)
Related to  openhab/openhab-core#4483

---------

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 23:21:28 +01:00
Wouter Born dad104e5d7
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>
2024-10-24 20:23:03 +02:00
Wouter Born 8e357f40df
Add stale action GHA workflow (#2747)
This allows for automatically marking issues as stale and closing them.

We use this in the core/add-ons and distro repos.
The "stale" label needs to be added for this to work.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-09-08 13:14:21 +02:00
Florian Hotze 767e5e56b0
GH Actions: Upgrade relative-ci/agent-upload-artifact-action (#2598)
Fixes Node.js 16 deprecation warning.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-01 18:40:09 +02:00
Holger Friedrich 88015e3f35
[CI] Add Java 21 compiling to J17 and native J21 (#2576)
Refs https://github.com/openhab/openhab-distro/issues/1590.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-05-14 18:05:06 +02:00
Florian Hotze c6e1d8bc87
Use Node v20 for Main UI build (#2434)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-04-30 16:55:03 +02:00
Florian Hotze a81bb0dd3a
GHA Main UI checks: Run unit tests (#2491)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-23 10:00:44 +01:00
Wouter Born a565bf2d12
Upgrade GHA dependencies (#2366)
This fixes the following deprecation warning:

> Node.js 16 actions are deprecated. Please update the following actions
to use Node.js 20

Signed-off-by: Wouter Born <github@maindrain.net>
2024-02-17 11:18:05 +01:00
GiviMAD 1c03c60f84
Upgrade from webpack v4 to v5 (#2267)
Upgrade webpack and related build dependencies from v4 to v5.
Also upgrade the NodeJS and npm versions used by the Main UI build as well as babel.

The changes follow the recommendations of the webpack migration guide at https://webpack.js.org/migrate/5/ or are required changes for updated webpack plugins.
New default values causing problems have been overwritten, e.g. devServer.compress: false because compression broke the SSE event streams.
The ModuleConcatenationPlugin is not created manually in production mode anymore, as this setting broke the production build, and it is not neccassary to create that, as this plugin is automatically enabled in production mode.
See https://webpack.js.org/plugins/module-concatenation-plugin/.

---------

Also-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Miguel Álvarez <miguelwork92@gmail.com>
2024-01-31 00:32:56 +01:00
Florian Hotze 2c70e19983
Update mainui workflow to generate webpack-stats on push to main (#2278)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-01-18 09:09:51 +01:00
Viorel Cojocaru eee0277d89
Update RelativeCI agent action (#2063)
The RelativeCI action was using the CLI with an inline API key.

This PR replaces the RelativeCI CLI with the action agent running on workflow_run
event and in the context of the default branch (secrets are not leaked to forks). 

Signed-off-by: Viorel Cojocaru <vio@beanon.com>
2023-09-26 19:44:38 +02:00
Wouter Born 30ab36c221
Upgrade Maven and plug-ins (#2044)
* Use Maven 3.9.4 with GitHub Actions CI
* Upgrade Maven plug-ins

Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-30 13:28:01 +02:00
J-N-K 38f44af1e1
Raise minimum JDK version to 17 (#1588)
* Raise minimum JDK version to 17

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 23:20:09 +01:00
Wouter Born e77e3f48d5
GitHub Actions workflow upgrades (#1573)
* Upgrade actions to fix deprecation warnings
* Use ubuntu-22.04 for builds

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-11 16:56:56 +01:00
Wouter Born 2e46427c75
GitHub Actions workflow improvements (#1434)
* Upgrade actions to latest versions
* Upgrade Maven to 3.8.6
* Use Temurin JDK instead of Zulu JDK

The Temurin JDK is preinstalled in the [Ubuntu image](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#java) whereas the Zulu JDK first need to be downloaded.
It should also perform better because the Temurin JDK is linked to glibc 2.12 whereas the Zulu JDK is linked to glibc 2.5.

Also adds missing wildcards to the .gitattributes file.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-07-03 15:55:17 +02:00
Wouter Born 97f18398d3
Add GitHub Actions CI build (#1341)
* Add GHA CI build (Java 11/17)
* Add GHA build status badge
* Update required Java version range used by the enforcer plugin

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 12:25:22 +01:00
DarkC f601eb242e
Fix lint npm command & use it in GitHub workflow (#952)
Signed-off-by: Kevin Haunschmied <darkc.futarialone@gmail.com>
2021-03-10 20:07:14 +01:00
Yannick Schaus d3a49e97d5
Reactivate @vue/standard + template ESLint rules (#942)
Includes template rules from #905.

Adjust webpack configuration:
- add environment options & scripts to generate reports & stats
- add GitHub workflow job for bundle-analyzer report integration (as artifact)
  & integration with https://app.relative-ci.com/projects/ZNG5hy4VeSJQVQcq1Kvu
  for comparative analysis

Signed-off-by: Philipp Waller <1090452+philippwaller@users.noreply.github.com>
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-03-09 18:14:20 +01:00
Yannick Schaus 074942e598
Update job name
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-03-07 03:30:59 +01:00
Yannick Schaus feda256b7e
Update GitHub action
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-03-07 03:29:22 +01:00
Yannick Schaus b7384eba61
Update ESLint action path restriction
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-03-07 02:28:39 +01:00
Yannick Schaus eed87a8adb
Add ESLint action for Main UI
Signed-off-by: Yannick Schaus <github@schaus.net>
2021-03-07 02:19:24 +01:00
Yannick Schaus cd66d064a7
[skip ci] More orga spelling fixes & adjustments (#531)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-18 01:33:49 +01:00
Yannick Schaus dae0086a0b
[skip ci] [orga] Further improvements to the issue templates & README (#530)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-17 22:59:35 +01:00
Yannick Schaus 668bb82734
[skip ci] [orga] Fix spelling errors in issue menu
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-17 17:29:59 +01:00
Yannick Schaus 338e819196
[skip ci] [orga] Adjustments in README & templates (#528)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-17 17:26:57 +01:00
Yannick Schaus ce79d887f5
[Orga] Add README, move directives & template issues (#527)
Signed-off-by: Yannick Schaus <github@schaus.net>
2020-11-17 17:17:13 +01:00