This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 6edcd9a Update ci.yml for run CI faster (#15283)
6edcd9a is described below
commit 6edcd9a490dafc3ea5f606e3fa49fd4be3d2c45a
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Feb 8 10:32:22 2022 +0800
Update ci.yml for run CI faster (#15283)
* Update ci.yml
* Update ci.yml
* Update workflow yml
---
.github/workflows/ci.yml | 16 +++++++---------
.github/workflows/docker.yml | 13 +++++++------
.github/workflows/issue.yml | 8 --------
3 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eb40f86..0497116 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -42,9 +42,8 @@ jobs:
- uses: actions/checkout@v2
- name: Check License Header
uses: apache/skywalking-eyes@main
-
+
windows:
- needs: check-license
runs-on: windows-latest
timeout-minutes: 60
steps:
@@ -69,14 +68,13 @@ jobs:
- name: Build with Maven
shell: cmd
run: |
- .\mvnw -B clean cobertura:cobertura -D"maven.javadoc.skip"=true
install < nul
+ .\mvnw -B clean cobertura:cobertura -D"maven.javadoc.skip"=true
-D"rat.skip"=true install < nul
echo "mvnw exited"
- name: Build examples with Maven
run: ./mvnw -B -f examples/pom.xml clean package -DskipTests
unix:
name: CI Tests - JDK ${{ matrix.java.version }} - on ${{ matrix.os }}
- needs: check-license
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
@@ -86,15 +84,15 @@ jobs:
java:
- {
version: 8,
- maven_args: "cobertura:cobertura -Dmaven.javadoc.skip=true"
+ maven_args: "cobertura:cobertura -Dmaven.javadoc.skip=true
-Drat.skip=true"
}
- {
version: 11,
- maven_args: "-Dmaven.javadoc.skip=true"
+ maven_args: "-Dmaven.javadoc.skip=true -Drat.skip=true
-Djacoco.skip=true"
}
- {
version: 17,
- maven_args: "-Dmaven.javadoc.skip=true"
+ maven_args: "-Dmaven.javadoc.skip=true -Drat.skip=true
-Djacoco.skip=true"
}
steps:
- name: Cache Maven Repos
@@ -113,7 +111,7 @@ jobs:
run: echo y | ./mvnw -B clean install ${{ matrix.java.maven_args }}
- name: Build examples with Maven
run: echo y | ./mvnw -B -f examples/pom.xml clean package -DskipTests
-
+
macos:
name: CI Tests - JDK ${{ matrix.java.version }} - on ${{ matrix.os }}
needs: check-license
@@ -126,7 +124,7 @@ jobs:
java:
- {
version: 8,
- maven_args: "cobertura:cobertura -Dmaven.javadoc.skip=true"
+ maven_args: "cobertura:cobertura -Dmaven.javadoc.skip=true
-Drat.skip=true"
}
steps:
- name: Cache Maven Repos
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index b0691ea..de38bdb 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -27,26 +27,25 @@ env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.count=3
-Dmaven.wagon.httpconnectionManager.ttlSeconds=30 -DskipTests
jobs:
-
deploy-docker-iamge:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v2
-
+
# setup docker
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
+
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
+
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
+
# build target with maven
- name: Cache Maven Repos
uses: actions/cache@v2
@@ -55,17 +54,19 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
+
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
+
- name: set environment
run: export MAVEN_OPTS=' -Dmaven.javadoc.skip=true -Drat.skip=true
-Djacoco.skip=true $MAVEN_OPTS'
- name: Build Project
run: |
./mvnw -B -Prelease,docker -DskipTests clean install
docker image ls --format "{{.ID}} {{.Repository}} {{.Tag}}" | grep
apache| sed 's/apache\//${{ secrets.DOCKERHUB_USERNAME }}\//' |tr A-Z a-z |awk
'{system("docker tag "$1" "$2":latest;docker tag "$1" "$2":"$3";")}'
-
+
- name: Push Docker Image
run: |
echo Docker Images:
diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml
index f7fdd54..d3c9f04 100644
--- a/.github/workflows/issue.yml
+++ b/.github/workflows/issue.yml
@@ -20,13 +20,10 @@ name: ISSUE Standardized Process
on:
schedule:
- cron: '0 0 */1 * *' # once a day
-
issue_comment:
types: [created,edited]
-
issues:
types: [labeled,reopened]
-
jobs:
comment-action:
@@ -36,7 +33,6 @@ jobs:
- name: Print Issue Comment
run: |
echo ${{ github.event.comment.body }}
-
- name: Trigger The CI Workflow
if: ${{ contains( github.event.comment.body , '/run ci') }}
uses: mvasigh/dispatch-action@main
@@ -45,7 +41,6 @@ jobs:
repo: shardingsphere
owner: ${{ github.actor }}
event_type: rerun-ci
-
remove-inactive:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'issues' && github.event.action ==
'reopened' }}
@@ -58,8 +53,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: "status: inactive"
-
-
check-inactive-issue:
runs-on: ubuntu-latest
concurrency: check-inactive # singleton-run-stage
@@ -76,7 +69,6 @@ jobs:
Hello ${{ github.event.issue.user.login }}, this issue has not
received a reply for serveral days.
This issue is supposed to be closed.
contents: "heart"
-
close-issue:
runs-on: ubuntu-latest
concurrency: # singleton-run-stage