This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch karaf-4.4.x
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/karaf-4.4.x by this push:
new dba3b68e73 Rename CI and define build and test run in CI (#2227)
(#2229)
dba3b68e73 is described below
commit dba3b68e73e29583c2d605a2563495ca223d1e5a
Author: JB Onofré <[email protected]>
AuthorDate: Tue Jan 20 10:08:18 2026 +0100
Rename CI and define build and test run in CI (#2227) (#2229)
---
.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 8ebe9763b9..2e50139b43 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 11
+ uses: actions/setup-java@v4
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+ cache: 'maven'
- name: Test
- run: mvn -U -B -e clean install -Ptest
+ run: mvn -B -e -fae clean install -Ptest