You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2020/08/16 19:07:27 UTC
[accumulo] branch 1.10 updated: Add workflow for triggering a
custom build
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch 1.10
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/1.10 by this push:
new 367a53e Add workflow for triggering a custom build
367a53e is described below
commit 367a53ef73ab10b461fd21183ca7e8d30985cdc2
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Sun Aug 16 15:05:09 2020 -0400
Add workflow for triggering a custom build
Add a `workflow_dispatcher` action that can be triggered manually to run
the full ITs, a single test, or anything in-between, on demand.
---
.github/workflows/maven-on-demand.yaml | 92 ++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
diff --git a/.github/workflows/maven-on-demand.yaml b/.github/workflows/maven-on-demand.yaml
new file mode 100644
index 0000000..100d346
--- /dev/null
+++ b/.github/workflows/maven-on-demand.yaml
@@ -0,0 +1,92 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# This workflow will build a Java project with Maven
+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
+
+name: Manual Build
+
+on:
+ workflow_dispatch:
+ # these inputs break down the Maven command-line, somewhat arbitrarily, so
+ # the UI when starting a run is easier to use
+ inputs:
+ mvnOpts:
+ description: Maven options
+ required: true
+ default: --fail-at-end
+ goals:
+ description: Maven goals
+ required: true
+ default: verify
+ utOpts:
+ description: Unit test options
+ required: true
+ default: -Dtest=noTest
+ itOpts:
+ description: Integration test options
+ required: true
+ default: -Dit.test=noIt -Dfailsafe.rerunFailingTestsCount=2
+ addOpts:
+ description: Additional options
+ required: true
+ default: -Dspotbugs.skip -Dcheckstyle.skip
+
+jobs:
+ mvn:
+ name: mvn (submitter: ${{ github.event.sender.login }})
+ timeout-minutes: 360
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+ - name: Cache local maven repository
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.m2/repository/
+ !~/.m2/repository/org/apache/accumulo
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Build with Maven
+ run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ github.event.inputs.mvnOpts }} ${{ github.event.inputs.goals }} ${{ github.event.inputs.utOpts }} ${{ github.event.inputs.itOpts }} ${{ github.event.inputs.addOpts }}
+ env:
+ MAVEN_OPTS: -Djansi.force=true
+ - name: Upload unit test results
+ uses: actions/upload-artifact@v2
+ with:
+ name: surefire-reports
+ path: ./**/target/surefire-reports/
+ if-no-files-found: ignore
+ - name: Upload integration test results
+ uses: actions/upload-artifact@v2
+ with:
+ name: failsafe-reports
+ path: ./**/target/failsafe-reports/
+ if-no-files-found: ignore
+ - name: Upload mini test logs
+ uses: actions/upload-artifact@v2
+ with:
+ name: mini-tests-logs
+ path: ./**/target/**/mini-tests/**/logs/
+ if-no-files-found: ignore
+