generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
58 lines (55 loc) · 1.87 KB
/
action.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
57
58
name: Run MUnit tests
description: Run MUnit tests
inputs:
nexus_username:
description: Nexus enterprise repository username
required: true
nexus_password:
description: Nexus enterprise repository password
required: true
maven_settings_path:
description: Maven settings file path
required: true
default: .maven/settings.xml
upload_coverage_reports:
description: Upload MUnit reports to GitHub Actions Artifacts
default: 'true'
retention_days:
description: Artifact retention days
default: '1'
encryption_key:
description: Encryption key for secure properties
required: true
connected_app_client_id:
description: CloudHub connected app client ID
required: false
connected_app_client_secret:
description: CloudHub connected app client secret
required: false
business_group_id:
description: Business group ID
required: false
runs:
using: composite
steps:
- name: Increase JAVA HEAP size
shell: bash
run: echo "JAVA_TOOL_OPTIONS=-Xmx5g -Xms1g" >> $GITHUB_ENV
- name: Test with Maven
run: mvn test --settings ${{ inputs.maven_settings_path }} -DsecuredKey=${ENCRYPTION_KEY}
shell: bash
env:
NEXUS_USERNAME: ${{ inputs.nexus_username }}
NEXUS_PASSWORD: ${{ inputs.nexus_password }}
ENCRYPTION_KEY: ${{ inputs.encryption_key }}
CONNECTED_APP_CLIENT_ID: ${{ inputs.connected_app_client_id }}
CONNECTED_APP_CLIENT_SECRET: ${{ inputs.connected_app_client_secret }}
BUSINESS_GROUP_ID: ${{ inputs.business_group_id }}
JAVA_TOOL_OPTIONS: ${{ env.JAVA_TOOL_OPTIONS }}
- name: Upload MUnit reports
uses: actions/upload-artifact@v4
if: inputs.upload_coverage_reports == 'true'
with:
name: munit-test-reports
path: target/site/munit/coverage/
retention-days: ${{ inputs.retention_days }}