generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (61 loc) · 1.99 KB
/
shared_test.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
59
60
61
62
63
64
65
66
name: Test
on:
workflow_call:
inputs:
maven_settings_path:
description: Maven settings file path
type: string
required: true
default: .maven/settings.xml
upload_coverage_reports:
description: Upload MUnit reports to GitHub Actions Artifacts
type: boolean
default: true
timeout_minutes:
description: The maximum number of minutes to let a job run before GitHub automatically cancels it.
type: number
required: false
default: 15
java_version:
description: The Java version used to set up the Mulesoft environment.
type: number
required: false
secrets:
NEXUS_USERNAME:
required: true
NEXUS_PASSWORD:
required: true
ENCRYPTION_KEY:
required: true
CONTD_APP_CLIENT_ID:
required: false
CONTD_APP_CLIENT_SECRET:
required: false
BUSINESS_GROUP_ID:
required: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run shared tests
runs-on: ubuntu-latest
timeout-minutes: ${{ inputs.timeout_minutes }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Mulesoft environment
uses: nimblehq/mulesoft-actions/setup@v1.16.0
with:
java_version: ${{ inputs.java_version }}
- name: Run MUnit tests
uses: nimblehq/mulesoft-actions/test@v1.16.0
with:
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
maven_settings_path: ${{ inputs.maven_settings_path }}
upload_coverage_reports: ${{ inputs.upload_coverage_reports }}
encryption_key: ${{ secrets.ENCRYPTION_KEY }}
connected_app_client_id: ${{ secrets.CONTD_APP_CLIENT_ID }}
connected_app_client_secret: ${{ secrets.CONTD_APP_CLIENT_SECRET }}
business_group_id: ${{ secrets.BUSINESS_GROUP_ID }}