Skip to content

Commit f572bd8

Browse files
committed
#320 Idea to add CI pipeline with github actions
- Combine into one CI file again and use dorny/paths-filter@v3 to detect changes
1 parent f0e5cc3 commit f572bd8

File tree

3 files changed

+25
-82
lines changed

3 files changed

+25
-82
lines changed

.github/workflows/ci-http.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/ci-scr.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/ci-maven-bundle-plugin.yml renamed to .github/workflows/maven-ci.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: Github CI Build - Maven bundle plugin
1+
name: Github CI Build
22

33
on:
44
push:
55
branches: [ "master" ]
66
paths:
7+
- 'scr/**'
8+
- 'http/**'
79
- 'tools/maven-bundle-plugin/**'
810
pull_request:
911
branches: [ "master" ]
1012
paths:
13+
- 'scr/**'
14+
- 'http/**'
1115
- 'tools/maven-bundle-plugin/**'
1216

1317
permissions: {}
@@ -27,7 +31,26 @@ jobs:
2731
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
2832
with:
2933
maven-version: 3.9.7
30-
- name: Felix maven-bundle-plugin
34+
- name: Check which subproject changed and build affected ones
35+
uses: dorny/paths-filter@v3
36+
id: changes
37+
with:
38+
filters: |
39+
scr:
40+
- 'scr/**'
41+
http:
42+
- 'http/**'
43+
maven-bundle-plugin:
44+
- 'tools/maven-bundle-plugin/**'
45+
46+
- name: Felix SCR
47+
if: steps.changes.outputs.scr == 'true'
48+
run: mvn -B -V -Dstyle.color=always --file scr/pom.xml clean verify
49+
- name: Felix HTTP
50+
if: steps.changes.outputs.http == 'true'
51+
run: mvn -B -V -Dstyle.color=always "-Dit.test=!MissingWebsocketDependenciesIT" --file http/pom.xml clean install verify
52+
- name: Felix Maven bundle plugin
53+
if: steps.changes.outputs.maven-bundle-plugin == 'true'
3154
run: mvn -B -V -Dstyle.color=always --file tools/maven-bundle-plugin/pom.xml clean install verify
3255
- name: Upload Test Results
3356
if: always()

0 commit comments

Comments
 (0)