Skip to content

Helix Manual CI

Helix Manual CI #38

name: Helix Manual CI
on:
workflow_dispatch:
inputs:
buildRef:
description: Ref to build (commit, branch, or refs/pull/1234/head or refs/pull/1234/merge)
required: true
default: refs/pull/1234/merge
mvnOpts:
description: Can provide custom Maven options in addition to existing one.
required: true
default: --fail-at-end
goals:
description: Can provide custom Maven goals in addition to existing one.
required: true
default: -fae test
jobs:
MANUAL_CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.buildRef }}
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn clean install -Dmaven.test.skip.exec=true -DretryFailedDeploymentCount=5
- name: Run All Tests
run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ github.event.inputs.mvnOpts }} ${{ github.event.inputs.goals }}
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Tests Results
path: target/surefire-reports/junitreports/TEST-*.xml
reporter: java-junit
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: target/surefire-reports/junitreports/TEST-*.xml