Skip to content

Commit

Permalink
early bird: adopt forked ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-rew committed Jul 23, 2024
1 parent 34dcd75 commit 89a1f40
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 1 deletion.
67 changes: 67 additions & 0 deletions .github/workflows/ci-fork.yml
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
6 changes: 5 additions & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ on:

jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/dev.yml@v2
uses: ./.github/workflows/ci-fork.yml
with:
mvnArgs: '-Dproject.build.plugin.version=11.4.0-SNAPSHOT -Dtester.version=11.4.0-SNAPSHOT'
javaVersion: '21'
mvnVersion: '3.9.8'

0 comments on commit 89a1f40

Please sign in to comment.