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>
* 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>
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>
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>
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>
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>
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>
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>
* 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>
* 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>