-
Notifications
You must be signed in to change notification settings - Fork 13
54 lines (45 loc) · 1.46 KB
/
CI-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI Build
run-name: Build on branch ${{github.ref_name}} triggered by ${{github.actor}}
on:
push:
branches:
- MARP-60-Git-Hub-Actions-Build-for-Market-repo-to-build-and-test-artifact
jobs:
ci-build:
name: CI Build
runs-on: [ubuntu-latest]
strategy:
fail-fast: true
env:
testDirectory: market-test/pom.xml
steps:
- name: Checkout current branch
uses: actions/checkout@v4
- name: Editor checker
uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker -verbose --no-color
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- name: Build source
shell: bash
run: |
cd market-test
mvn clean compile exec:java -Dexec.mainClass="com.axonivy.market.CreateBundle" -Dmaven.plugin.validation=none -Duser.home=/tmp
mvn clean verify -P json.schema -Dmaven.plugin.validation=none -Duser.home=/tmp -DfailFast=true
cd ../
- name: Archive build artifact
uses: actions/upload-artifact@v3
with:
path: |
**/target/schema/market/*/*.json
- name: Public test report
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: success() || failure()
with:
files: "**/target/surefire-reports/**/*.xml"
- name: Clean up
run: |
rm -rf *