-
Notifications
You must be signed in to change notification settings - Fork 11
56 lines (47 loc) · 1.44 KB
/
ci.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
55
56
name: CI Build
run-name: Build on branch ${{github.ref_name}} triggered by ${{github.actor}}
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
validate:
name: Validate
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 compile exec:java -Dexec.mainClass="com.axonivy.market.CreateBundle" -Dmaven.plugin.validation=none -Duser.home=/tmp -DskipTests
mvn verify -P json.schema -Dmaven.plugin.validation=none -Duser.home=/tmp -DfailFast=true
cd ../
- name: Archive build artifact
uses: actions/upload-artifact@v4
with:
path: |
**/target/schema/market/*/*.json
- name: Public test report
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: success() || failure()
with:
files: "**/target/surefire-reports/**/*.xml"
- name: Clean up
run: |
rm -rf *