This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new c1d32a8bd chore: update ci version & enable it (#1892)
c1d32a8bd is described below
commit c1d32a8bd0b6204bb4eee3f19f356aae51560595
Author: imbajin <[email protected]>
AuthorDate: Sun Oct 30 22:23:33 2022 +0800
chore: update ci version & enable it (#1892)
* chore: enable required ci
* Update .asf.yaml
* Update .asf.yaml
* update ci version
* Update .asf.yaml
* Update .asf.yaml
* Update codeql-analysis.yml
* Update .asf.yaml
---
.asf.yaml | 24 +++++++++++++++---------
.github/workflows/ci.yml | 10 +++++-----
.github/workflows/codeql-analysis.yml | 14 +++++++-------
3 files changed, 27 insertions(+), 21 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index ff2974baa..e1dde177d 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -28,23 +28,29 @@ github:
del_branch_on_merge: true
#labels:
enabled_merge_buttons:
- merge: true
+ merge: false
+ rebase: false
squash: true
- rebase: true
protected_branches:
master:
required_status_checks:
- # strict means "Require branches to be up to date before merging".
+ # strict means "Require branches to be up-to-date before merging".
strict: true
- # contexts are the names of checks that must pass
- #contexts:
- # - hugegraph ci/build
- # - hugegraph-ci/build
+ # contexts are the names of checks that must pass (now only enable the
basic check)
+ contexts:
+ - Analyze (java)
+ - CodeQL
+ - build (memory, 8)
+ - build (memory, 11)
required_pull_request_reviews:
dismiss_stale_reviews: true
require_code_owner_reviews: false
required_approving_review_count: 2
notifications:
- issues: [email protected]
- pullrequests: [email protected]
+ pullrequests_status: [email protected]
+ # before use the config, we should ensure the "mail" address has set well
(exist)
+ #pullrequests_comment: [email protected]
+ #issues: [email protected]
+ #discussions: [email protected]
+
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d6b019819..17236051f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,4 +1,4 @@
-name: hugegraph ci
+name: hugegraph-ci
on:
push:
@@ -31,7 +31,7 @@ jobs:
steps:
- name: Install JDK ${{ matrix.JAVA_VERSION }}
- uses: actions/setup-java@v2
+ uses: actions/setup-java@v3
with:
java-version: ${{ matrix.JAVA_VERSION }}
distribution: 'zulu'
@@ -44,7 +44,7 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
fetch-depth: 2
@@ -53,7 +53,7 @@ jobs:
mvn clean compile -U -Dmaven.javadoc.skip=true | grep -v
"Downloading\|Downloaded"
- name: Install JDK 8
- uses: actions/setup-java@v2
+ uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'zulu'
@@ -63,7 +63,7 @@ jobs:
$TRAVIS_DIR/install-backend.sh $BACKEND
- name: Install JDK ${{ matrix.JAVA_VERSION }}
- uses: actions/setup-java@v2
+ uses: actions/setup-java@v3
with:
java-version: ${{ matrix.JAVA_VERSION }}
distribution: 'zulu'
diff --git a/.github/workflows/codeql-analysis.yml
b/.github/workflows/codeql-analysis.yml
index 5bcfa103c..17f41813f 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -4,10 +4,10 @@ name: "CodeQL"
on:
push:
- branches: [ master, release-0.*, v0.* ]
+ branches: [ master, release-*, v*.* ]
pull_request:
# The branches below must be a subset of the branches above
- branches: [ master ]
+ # branches: [ master ] # enable in all PR
schedule:
- cron: '33 0 * * 5'
@@ -27,17 +27,17 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Setup Java JDK
- uses: actions/setup-java@v2
+ uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
- uses: github/codeql-action/init@v1
+ uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a
config file.
@@ -48,7 +48,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually
(see below)
- name: Autobuild
- uses: github/codeql-action/autobuild@v1
+ uses: github/codeql-action/autobuild@v2
# âšī¸ Command-line programs to run using the OS shell.
# đ https://git.io/JvXDl
@@ -62,4 +62,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1
+ uses: github/codeql-action/analyze@v2