-
Notifications
You must be signed in to change notification settings - Fork 54
45 lines (42 loc) · 1.42 KB
/
sink-connector-lightweight-tests.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
name: Lightweight - Java Tests
on:
workflow_call:
inputs:
SINK_CONNECTOR_IMAGE:
description: "Lightweight connector docker image"
required: true
type: string
workflow_dispatch:
inputs:
SINK_CONNECTOR_IMAGE:
description: "Lightweight connector docker image"
required: true
type: string
env:
SINK_CONNECTOR_IMAGE: ${{ inputs.SINK_CONNECTOR_IMAGE }}
jobs:
java-lightweight:
runs-on: [ self-hosted, on-demand, type-cpx51, image-x86-app-docker-ce ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Display hostname of runner
run: echo $(hostname -I | cut -d ' ' -f 1)
- name: Install maven
run: sudo apt-get update && sudo apt-get install -y maven
- name: Build Library with Maven
working-directory: sink-connector
run: mvn clean install -DskipTests=true
- name: Build Replicator with Maven
working-directory: sink-connector-lightweight
run: mvn --quiet surefire-report:report
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: 'sink-connector-lightweight/target/surefire-reports/TEST-*.xml'