Skip to content

Commit f0e5cc3

Browse files
committed
#320 Idea to add CI pipeline with github actions
- Split up CI build plans per subproject - Add maven-bundle-plugin to actions
1 parent b55db65 commit f0e5cc3

3 files changed

Lines changed: 81 additions & 5 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
name: Github CI Build
1+
name: Github CI Build - HTTP
22

33
on:
44
push:
55
branches: [ "master" ]
66
paths:
7-
- 'scr/**'
87
- 'http/**'
98
pull_request:
109
branches: [ "master" ]
1110
paths:
12-
- 'scr/**'
1311
- 'http/**'
1412

1513
permissions: {}
@@ -29,8 +27,6 @@ jobs:
2927
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
3028
with:
3129
maven-version: 3.9.7
32-
- name: Felix SCR
33-
run: mvn -B -V -Dstyle.color=always --file scr/pom.xml clean verify
3430
- name: Felix HTTP
3531
run: mvn -B -V -Dstyle.color=always "-Dit.test=!MissingWebsocketDependenciesIT" --file http/pom.xml clean install verify
3632
- name: Upload Test Results
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Github CI Build - Maven bundle plugin
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
paths:
7+
- 'tools/maven-bundle-plugin/**'
8+
pull_request:
9+
branches: [ "master" ]
10+
paths:
11+
- 'tools/maven-bundle-plugin/**'
12+
13+
permissions: {}
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
cache: maven
26+
- name: Set up Maven
27+
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
28+
with:
29+
maven-version: 3.9.7
30+
- name: Felix maven-bundle-plugin
31+
run: mvn -B -V -Dstyle.color=always --file tools/maven-bundle-plugin/pom.xml clean install verify
32+
- name: Upload Test Results
33+
if: always()
34+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
35+
with:
36+
name: test-results
37+
if-no-files-found: warn
38+
path: |
39+
${{ github.workspace }}/**/target/surefire-reports/*.xml
40+
${{ github.workspace }}/**/target/failsafe-reports/*.xml

.github/workflows/ci-scr.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Github CI Build - SCR
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
paths:
7+
- 'scr/**'
8+
pull_request:
9+
branches: [ "master" ]
10+
paths:
11+
- 'scr/**'
12+
13+
permissions: {}
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
cache: maven
26+
- name: Set up Maven
27+
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
28+
with:
29+
maven-version: 3.9.7
30+
- name: Felix SCR
31+
run: mvn -B -V -Dstyle.color=always --file scr/pom.xml clean verify
32+
- name: Upload Test Results
33+
if: always()
34+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
35+
with:
36+
name: test-results
37+
if-no-files-found: warn
38+
path: |
39+
${{ github.workspace }}/**/target/surefire-reports/*.xml
40+
${{ github.workspace }}/**/target/failsafe-reports/*.xml

0 commit comments

Comments
 (0)