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
This commit is contained in:
imbajin 2022-10-30 22:23:33 +08:00 committed by GitHub
parent cc80d27745
commit c1d32a8bd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 21 deletions

View File

@ -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: dev@hugegraph.apache.org
pullrequests: commits@hugegraph.apache.org
pullrequests_status: dev@hugegraph.apache.org
# before use the config, we should ensure the "mail" address has set well (exist)
#pullrequests_comment: issues@hugegraph.apache.org
#issues: issues@hugegraph.apache.org
#discussions: issues@hugegraph.apache.org

View File

@ -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'

View File

@ -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