-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.46 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
on:
push:
schedule:
- cron: '21 21 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Decide to deploy or not
uses: haya14busa/action-cond@v1
id: condval
with:
cond: ${{ contains('refs/heads/master refs/heads/release/', github.ref) }}
if_false: "deploy -DaltSnapshotDeploymentRepository=nexus.axonivy.com::https://nexus.axonivy.com/repository/maven-snapshots/"
if_true: verify
- name: Provide maven repository credentials
uses: s4u/maven-settings-action@v2
with:
servers: |
[{
"id": "nexus.axonivy.com",
"username": "${{ secrets.NEXUS_AXONIVY_COM_USER }}",
"password": "${{ secrets.NEXUS_AXONIVY_COM_PASSWORD }}"
}]
- name: Build with Maven
run: mvn clean ${{ steps.condval.outputs.value }} --batch-mode -Divy.engine.version=10.0.8
- 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@v3
with:
path: |
*/target/*.iar
*product/target/*.zip