This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/main by this push:
new 2800018ce3 Rename CI and define build and test run in CI (#2227)
2800018ce3 is described below
commit 2800018ce31e71791a1113c49df7f1fbf6da8aa0
Author: JB Onofré <[email protected]>
AuthorDate: Sat Jan 17 14:31:13 2026 +0100
Rename CI and define build and test run in CI (#2227)
---
.asf.yaml | 2 ++
.github/workflows/{build.yml => ci.yml} | 26 +++++++++++++++++++++++---
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 6ac3155568..4c116689bb 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -41,6 +41,7 @@ github:
strict: false
contexts:
- build
+ - test
karaf-4.4.x:
required_pull_request_reviews:
require_code_owner_reviews: false
@@ -50,6 +51,7 @@ github:
strict: false
contexts:
- build
+ - test
features:
wiki: false
diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml
similarity index 75%
rename from .github/workflows/build.yml
rename to .github/workflows/ci.yml
index a1deabfac9..19d25281b4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/ci.yml
@@ -17,7 +17,7 @@
# under the License.
#
-name: Build
+name: CI
on:
push:
@@ -27,11 +27,13 @@ on:
jobs:
build:
+ name: build
- runs-on: ubuntu-latest
permissions:
contents: read
+ runs-on: ubuntu-24.04
+
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -43,5 +45,23 @@ jobs:
cache: 'maven'
- name: Build
run: mvn -U -B -e clean install -Prat -DskipTests "-Dinvoker.skip=true"
+
+ test:
+ name: test
+
+ permissions:
+ contents: read
+
+ runs-on: ubuntu-24.04
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: 'maven'
- name: Test
- run: mvn -U -B -e clean install -Ptest
+ run: mvn -B -e -fae clean install -Ptest