-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
early bird: adopt forked ci pipeline
- Loading branch information
Showing
2 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Reusable CI-Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
mvnArgs: | ||
type: string | ||
required: false | ||
javaVersion: | ||
type: number | ||
default: 17 | ||
mvnVersion: | ||
type: string | ||
default: 3.6.3 | ||
secrets: | ||
mvnArgs: | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Java JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ inputs.javaVersion }} | ||
distribution: temurin | ||
|
||
- name: Set up Maven | ||
uses: stCarolas/setup-maven@v5 | ||
with: | ||
maven-version: ${{ inputs.mvnVersion }} | ||
|
||
- name: Verify Maven version | ||
run: mvn --version | ||
|
||
- name: Build with Maven | ||
run: mvn clean verify -Dmaven.test.failure.ignore=true --batch-mode ${{ inputs.mvnArgs }} ${{ secrets.mvnArgs }} | ||
|
||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: always() | ||
with: | ||
junit_files: | | ||
*/target/*-reports/*.xml | ||
!*/target/*-reports/failsafe-summary.xml | ||
- name: Archive build artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: | | ||
*/target/*.iar | ||
*product/target/*.zip | ||
- name: Archive test reports | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: test-reports | ||
retention-days: 5 | ||
path: | | ||
*/target/testEngineOut.log | ||
*/target/selenide/* | ||
*/target/ivyEngine/deploy/*/*.deploymentLog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters