You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uniffle.apache.org by ck...@apache.org on 2023/02/13 08:18:06 UTC
[incubator-uniffle] branch k8s-workflow created (now 214c1a56)
This is an automated email from the ASF dual-hosted git repository.
ckj pushed a change to branch k8s-workflow
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
at 214c1a56 add single reusable workflow
This branch includes the following new commits:
new 214c1a56 add single reusable workflow
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-uniffle] 01/01: add single reusable workflow
Posted by ck...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ckj pushed a commit to branch k8s-workflow
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git
commit 214c1a56d6607cd26ff11bb31cee2c1e9ac310ed
Author: Kaijie Chen <ck...@apache.org>
AuthorDate: Mon Feb 13 16:17:47 2023 +0800
add single reusable workflow
---
.github/workflows/build.yml | 6 ++++--
.github/workflows/{deploy.yml => single.yml} | 31 ++++++++++++++--------------
2 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d7b9579a..484b3b50 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -66,6 +66,8 @@ jobs:
reports-path: "**/target/surefire-reports/*.txt"
deploy:
- uses: ./.github/workflows/deploy.yml
+ uses: ./.github/workflows/single.yml
with:
- maven-args: package
+ maven-args: package -Pkubernetes -DskipUTs -DskipITs
+ cache-key: package
+ go-version: '1.17'
diff --git a/.github/workflows/deploy.yml b/.github/workflows/single.yml
similarity index 77%
rename from .github/workflows/deploy.yml
rename to .github/workflows/single.yml
index 803de485..336e39c6 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/single.yml
@@ -15,7 +15,7 @@
# limitations under the License.
#
-name: All Deploy Profiles in Parallel
+name: Single Maven Profile
on:
workflow_call:
@@ -23,6 +23,10 @@ on:
maven-args:
required: true
type: string
+ cache-key:
+ default: ''
+ required: false
+ type: string
summary:
default: "grep -e '^\\[ERROR\\]' /tmp/maven.log || true"
required: false
@@ -44,19 +48,14 @@ on:
required: false
type: string
go-version:
- default: '1.17'
+ default: 'None'
required: false
type: string
jobs:
- package:
+ maven:
runs-on: ubuntu-20.04
- strategy:
- matrix:
- profile:
- - kubernetes
- fail-fast: false
- name: ${{ matrix.profile }}
+ name: java ${{ inputs.java-version }} + go ${{ inputs.go-version }}
steps:
- name: Checkout project
uses: actions/checkout@v3
@@ -66,20 +65,20 @@ jobs:
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.jdk-distro }}
- name: Cache local Maven repository
+ if: ${{ inputs.cache-key != '' }}
uses: actions/cache@v3
with:
path: ~/.m2/repository
- key: mvn-${{ inputs.java-version }}-package-${{ matrix.profile }}-${{ hashFiles('**/pom.xml') }}
+ key: mvn-${{ inputs.java-version }}-${{ inputs.cache-key }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
- mvn-${{ inputs.java-version }}-package-${{ matrix.profile }}-
- mvn-${{ inputs.java-version }}-package-
+ mvn-${{ inputs.java-version }}-${{ inputs.cache-key }}-
- name: Set up Go ${{ inputs.go-version }}
- if: ${{ inputs.go-version != '' }}
+ if: ${{ inputs.go-version != 'None' }}
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.go-version }}
- - name: Execute `mvn ${{ inputs.maven-args }} -P${{ matrix.profile }}`
- run: mvn -B -fae ${{ inputs.maven-args }} -P${{ matrix.profile }} -DskipUTs -DskipITs | tee /tmp/maven.log
+ - name: Execute `mvn ${{ inputs.maven-args }}`
+ run: mvn -B -fae ${{ inputs.maven-args }} | tee /tmp/maven.log
shell: bash
- name: Summary of failures
if: ${{ failure() && inputs.summary != '' }}
@@ -89,7 +88,7 @@ jobs:
if: ${{ failure() && inputs.reports-path != '' }}
uses: actions/upload-artifact@v3
with:
- name: ${{ inputs.reports-name }}-${{ matrix.profile }}
+ name: ${{ inputs.reports-name }}
path: ${{ inputs.reports-path }}
continue-on-error: true
- name: Upload coverage to Codecov