You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2022/10/16 09:04:42 UTC

[logging-log4j2] branch release-2.x updated: Backport Kafka GitHub Actions configuration

This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new a875db9212 Backport Kafka GitHub Actions configuration
a875db9212 is described below

commit a875db921250515e72c483617361564e9ebebe31
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Oct 12 21:53:01 2022 +0200

    Backport Kafka GitHub Actions configuration
    
    This introduces a manually triggered workflow to check `log4j-core`
    against different Kafka versions.
---
 .github/workflows/log4j-kafka-test.yml | 57 ++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/.github/workflows/log4j-kafka-test.yml b/.github/workflows/log4j-kafka-test.yml
new file mode 100644
index 0000000000..3c2f8af1a2
--- /dev/null
+++ b/.github/workflows/log4j-kafka-test.yml
@@ -0,0 +1,57 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache license, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the license for the specific language governing permissions and
+# limitations under the license.
+
+name: log4j-kafka tests
+on: [workflow_dispatch]
+
+permissions: read-all
+
+jobs:
+
+  log4j-kafka-test:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        version: [ 1.1.1, 2.8.2, 3.3.1 ]
+
+    steps:
+
+      - name: Checkout repository
+        uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748   # 3.0.1
+
+      - name: Setup JDK 8
+        uses: actions/setup-java@9519cf1382ac8dc61ad461f7f7cb45f033220189   # 3.1.1
+        with:
+          distribution: temurin
+          java-version: 8
+          java-package: jdk
+          architecture: x64
+          cache: maven
+
+      - name: Inspect environment (Linux)
+        if: runner.os == 'Linux'
+        run: env | grep '^JAVA'
+
+      - name: Maven "test"
+        timeout-minutes: 60
+        shell: bash
+        run: |
+          ./mvnw \
+            --show-version --batch-mode --errors --no-transfer-progress --fail-at-end \
+            -Dkafka.version=${{ matrix.version }} \
+            -pl log4j-core-test -Dtest=Kafka*Test \
+            test
+