From 32cb672052b1604fded1fc87b4f0bd5c8d78ca26 Mon Sep 17 00:00:00 2001 From: Laszlo Bende Date: Mon, 7 Oct 2024 16:02:41 +0100 Subject: [PATCH 1/4] github workflow BuildTest for every PR Signed-off-by: Laszlo Bende --- .github/workflows/BuiltTest.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/BuiltTest.yml diff --git a/.github/workflows/BuiltTest.yml b/.github/workflows/BuiltTest.yml new file mode 100644 index 0000000..143121b --- /dev/null +++ b/.github/workflows/BuiltTest.yml @@ -0,0 +1,21 @@ +name: Build, test and package +on: + pull_request: +jobs: + build-test-package: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 21 + cache: gradle + - name: Setup Gradle + uses: gradle/gradle-build-action@v3 + with: + arguments: --no-daemon + - name: Build, test and package + run: ./gradlew build From eb0f92351fb8c754b297cb4f7503338377dd1812 Mon Sep 17 00:00:00 2001 From: Laszlo Bende Date: Mon, 7 Oct 2024 16:08:50 +0100 Subject: [PATCH 2/4] running spotlessApply (adding a licence header) Signed-off-by: Laszlo Bende --- .../src/main/kotlin/com/mwam/kafkakewl/domain/Matcher.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kafkakewl-domain/src/main/kotlin/com/mwam/kafkakewl/domain/Matcher.kt b/kafkakewl-domain/src/main/kotlin/com/mwam/kafkakewl/domain/Matcher.kt index 81f7c71..95db06c 100644 --- a/kafkakewl-domain/src/main/kotlin/com/mwam/kafkakewl/domain/Matcher.kt +++ b/kafkakewl-domain/src/main/kotlin/com/mwam/kafkakewl/domain/Matcher.kt @@ -1,3 +1,9 @@ +/* + * SPDX-FileCopyrightText: 2024 Marshall Wace + * + * SPDX-License-Identifier: Apache-2.0 + */ + package com.mwam.kafkakewl.domain import kotlinx.serialization.SerialName From 6ad17baed87626a7d4ebde2bf58ab8c0ae0af285 Mon Sep 17 00:00:00 2001 From: Laszlo Bende Date: Mon, 7 Oct 2024 16:13:48 +0100 Subject: [PATCH 3/4] using gradle/actions/setup-gradle@v3 Signed-off-by: Laszlo Bende --- .github/workflows/BuiltTest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/BuiltTest.yml b/.github/workflows/BuiltTest.yml index 143121b..af3ca34 100644 --- a/.github/workflows/BuiltTest.yml +++ b/.github/workflows/BuiltTest.yml @@ -14,7 +14,7 @@ jobs: java-version: 21 cache: gradle - name: Setup Gradle - uses: gradle/gradle-build-action@v3 + uses: gradle/actions/setup-gradle@v3 with: arguments: --no-daemon - name: Build, test and package From c1ca87d6e935dc7ce8f95b3a844fabd474bbb63d Mon Sep 17 00:00:00 2001 From: Laszlo Bende Date: Mon, 7 Oct 2024 16:22:51 +0100 Subject: [PATCH 4/4] BuildTest workflow fixes Signed-off-by: Laszlo Bende --- .github/workflows/BuiltTest.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/BuiltTest.yml b/.github/workflows/BuiltTest.yml index af3ca34..b1e1fc1 100644 --- a/.github/workflows/BuiltTest.yml +++ b/.github/workflows/BuiltTest.yml @@ -1,4 +1,4 @@ -name: Build, test and package +name: Build and test on: pull_request: jobs: @@ -14,8 +14,6 @@ jobs: java-version: 21 cache: gradle - name: Setup Gradle - uses: gradle/actions/setup-gradle@v3 - with: - arguments: --no-daemon - - name: Build, test and package + uses: gradle/actions/setup-gradle@v4 + - name: Build and test run: ./gradlew build