Skip to content

Commit

Permalink
#320 Idea to add CI pipeline with github actions
Browse files Browse the repository at this point in the history
- Split up CI build plans per subproject
- Add maven-bundle-plugin to actions
  • Loading branch information
paulrutter committed Jan 3, 2025
1 parent b55db65 commit f0e5cc3
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Github CI Build
name: Github CI Build - HTTP

on:
push:
branches: [ "master" ]
paths:
- 'scr/**'
- 'http/**'
pull_request:
branches: [ "master" ]
paths:
- 'scr/**'
- 'http/**'

permissions: {}
Expand All @@ -29,8 +27,6 @@ jobs:
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.7
- name: Felix SCR
run: mvn -B -V -Dstyle.color=always --file scr/pom.xml clean verify
- name: Felix HTTP
run: mvn -B -V -Dstyle.color=always "-Dit.test=!MissingWebsocketDependenciesIT" --file http/pom.xml clean install verify
- name: Upload Test Results
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ci-maven-bundle-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Github CI Build - Maven bundle plugin

on:
push:
branches: [ "master" ]
paths:
- 'tools/maven-bundle-plugin/**'
pull_request:
branches: [ "master" ]
paths:
- 'tools/maven-bundle-plugin/**'

permissions: {}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.7
- name: Felix maven-bundle-plugin
run: mvn -B -V -Dstyle.color=always --file tools/maven-bundle-plugin/pom.xml clean install verify
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: test-results
if-no-files-found: warn
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml
${{ github.workspace }}/**/target/failsafe-reports/*.xml
40 changes: 40 additions & 0 deletions .github/workflows/ci-scr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Github CI Build - SCR

on:
push:
branches: [ "master" ]
paths:
- 'scr/**'
pull_request:
branches: [ "master" ]
paths:
- 'scr/**'

permissions: {}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.7
- name: Felix SCR
run: mvn -B -V -Dstyle.color=always --file scr/pom.xml clean verify
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: test-results
if-no-files-found: warn
path: |
${{ github.workspace }}/**/target/surefire-reports/*.xml
${{ github.workspace }}/**/target/failsafe-reports/*.xml

0 comments on commit f0e5cc3

Please sign in to comment.