You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2023/02/08 02:03:21 UTC

[helix] branch master updated: Adding a manual workflow which allows triggering CI on any PR (#2368)

This is an automated email from the ASF dual-hosted git repository.

jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git


The following commit(s) were added to refs/heads/master by this push:
     new 930b02bd9 Adding a manual workflow which allows triggering CI on any PR (#2368)
930b02bd9 is described below

commit 930b02bd9690327676dd9792bdd82d6c8f2a5e38
Author: Rahul Rane <ra...@gmail.com>
AuthorDate: Tue Feb 7 18:03:14 2023 -0800

    Adding a manual workflow which allows triggering CI on any PR (#2368)
    
    Adding a manual workflow which allows triggering CI with custom maven options on any PR
---
 .github/workflows/Helix-Manual-CI.yml | 37 +++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/.github/workflows/Helix-Manual-CI.yml b/.github/workflows/Helix-Manual-CI.yml
new file mode 100644
index 000000000..df6bea292
--- /dev/null
+++ b/.github/workflows/Helix-Manual-CI.yml
@@ -0,0 +1,37 @@
+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 1.8
+        uses: actions/setup-java@v1
+        with:
+          java-version: 1.8
+      - name: Build with Maven
+        run: mvn clean install -Dmaven.test.skip.exec=true
+      - name: Run All Tests
+        run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ github.event.inputs.mvnOpts }} ${{ github.event.inputs.goals }}
+      - name: Print Tests Results
+        run: .github/scripts/printTestResult.sh
+        if: ${{ success() || failure() }}