galasa-dev / projectmanagement

Project Management repo for Issues and ZenHub
7 stars 4 forks source link

Build 'simplatform' with GH Actions #1943

Open jadecarino opened 1 month ago

jadecarino commented 1 month ago

Story

As a contributor to the galasa open source project, I want builds to be in the open, and use github actions, so that I can see build logs, see built artifacts, benefit from integration with github actions, and all without using any resources within the secretive IBM firewall.

Background

There are many benefits of moving our infrastructure to use github actions.

Objectives:

For reference, look at the existing Tekton pipelines for simplatform and the associated Tasks that it utilises, but remove/adapt Tasks as appropriate for GitHub actions.

Tasks

jadecarino commented 1 month ago

Waiting for 0.36.0 release to merge in PR: https://github.com/galasa-dev/simplatform/pull/160

jadecarino commented 4 weeks ago

Not closed this off yet as the builds (both GH and Tekton) are failing for Simplatform which I'll investigate tomorrow.

jadecarino commented 3 weeks ago

The Simplatform Tekton and GH builds are failing since upgrading the builds to use Java 17, but without upgrading the Maven versions to 3.9.+. The Tekton build uses Maven 3.8.7 and the GH build uses 3.8.8. Tekton can be updated, but I've been searching but cannot find a way to set the Maven version you want in a GH Actions build. Since it's using less than Maven 3.9, it's using the maven-war-plugin at 2.2, which is incompatible with Java 17.

To get the GH build working, I'll have to update the galasa-simplatform-application pom.xml to state which maven-war-plugin to use as 3.3.2. I'll then also need to update the galasa-simplatform-application version to 0.37.0 (currently 0.24.0) as there's just a change to the pom.