You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by ji...@apache.org on 2024/04/29 08:11:29 UTC
(incubator-seata-samples) branch master updated: optimize: update codeql and ci (#660)
This is an automated email from the ASF dual-hosted git repository.
jimin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-seata-samples.git
The following commit(s) were added to refs/heads/master by this push:
new 18c1d177 optimize: update codeql and ci (#660)
18c1d177 is described below
commit 18c1d177e2039f2cc0c2b887705fcf4daebb1c27
Author: Xiangkun Yin <pt...@apache.org>
AuthorDate: Mon Apr 29 16:11:26 2024 +0800
optimize: update codeql and ci (#660)
---
.github/workflows/CI.yml | 13 ++++++++++++-
.github/workflows/codeql-analysis.yml | 25 ++++++++++++++++++-------
2 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index cd8be650..11b306ca 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -21,4 +21,15 @@ jobs:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Test with Maven
- run: mvn test -B --file pom.xml
+ run: |
+ directories=("at-sample" "saga-sample" "tcc-sample" "xa-sample")
+ for dir in "${directories[@]}"; do
+ for subdir in "$dir"/*; do
+ if [ -d "$subdir" ]; then
+ echo "Entering directory $subdir"
+ cd "$subdir"
+ mvn -B test
+ cd - > /dev/null
+ fi
+ done
+ done
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 3734fda4..d658f8eb 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -38,11 +38,11 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
# 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.
@@ -50,10 +50,19 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- # 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
+ - name: Build
+ run: |
+ directories=("at-sample" "saga-sample" "tcc-sample" "xa-sample")
+ for dir in "${directories[@]}"; do
+ for subdir in "$dir"/*; do
+ if [ -d "$subdir" ]; then
+ echo "Entering directory $subdir"
+ cd "$subdir"
+ mvn -B package
+ cd - > /dev/null
+ fi
+ done
+ done
# âšī¸ Command-line programs to run using the OS shell.
# đ https://git.io/JvXDl
@@ -67,4 +76,6 @@ jobs:
# make release
- name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1
+ uses: github/codeql-action/analyze@v2
+ with:
+ category: "/language:${{matrix.language}}"
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org