-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
171 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,45 +5,47 @@ on: | |
workflow_call: | ||
secrets: | ||
S3ENDPOINT: | ||
description: 'S3ENDPOINT For Test' | ||
description: "S3ENDPOINT For Test" | ||
required: true | ||
S3REGION: | ||
description: 'S3REGION For Test' | ||
description: "S3REGION For Test" | ||
required: true | ||
S3APIKEY: | ||
description: 'S3APIKEY For Test' | ||
description: "S3APIKEY For Test" | ||
required: true | ||
S3APISECRET: | ||
description: 'S3APISECRET For Test' | ||
description: "S3APISECRET For Test" | ||
required: true | ||
S3BUCKET: | ||
description: 'S3BUCKET For Test' | ||
description: "S3BUCKET For Test" | ||
required: true | ||
|
||
jobs: | ||
ut-linux-x86: | ||
runs-on: ubuntu-latest | ||
name: UT Test on Ubuntu/x86 | ||
name: UT Test on Ubuntu/x86 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '3' | ||
fetch-depth: "3" | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Set up Go | ||
uses: ./.github/actions/setup_env | ||
uses: matrixorigin/CI/actions/setup-env@main | ||
with: | ||
setup-java: false | ||
- name: Set env | ||
run: | | ||
echo "endpoint=${{ secrets.S3ENDPOINT }}" >> $GITHUB_ENV | ||
echo "region=${{ secrets.S3REGION }}" >> $GITHUB_ENV | ||
echo "apikey=${{ secrets.S3APIKEY }}" >> $GITHUB_ENV | ||
echo "apisecret=${{ secrets.S3APISECRET }}" >> $GITHUB_ENV | ||
echo "bucket=${{ secrets.S3BUCKET }}" >> $GITHUB_ENV | ||
echo "bucket=${{ secrets.S3BUCKET }}" >> $GITHUB_ENV | ||
- name: Unit Testing | ||
run: | | ||
cd $GITHUB_WORKSPACE && make clean && make config | ||
make ut UT_PARALLEL=6 | ||
ut-mac-x86: | ||
if: ${{ !github.event.pull_request.draft }} | ||
runs-on: macos-12 | ||
|
@@ -52,11 +54,13 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '3' | ||
fetch-depth: "3" | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Set up Go | ||
uses: ./.github/actions/setup_env | ||
uses: matrixorigin/CI/actions/setup-env@main | ||
with: | ||
setup-java: false | ||
- name: Set env | ||
run: | | ||
echo "endpoint=${{ secrets.S3ENDPOINT }}" >> $GITHUB_ENV | ||
|
@@ -68,14 +72,14 @@ jobs: | |
run: | | ||
cd $GITHUB_WORKSPACE && make clean && make config | ||
make ut UT_PARALLEL=6 | ||
sca: | ||
runs-on: ubuntu-latest | ||
name: SCA Test on Ubuntu/x86 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '3' | ||
fetch-depth: "3" | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- uses: thiagodnf/[email protected] | ||
|
@@ -86,11 +90,13 @@ jobs: | |
.github/ISSUE_TEMPLATE/*.yml | ||
.github/ISSUE_TEMPLATE/*.yaml | ||
- name: Set up Go | ||
uses: ./.github/actions/setup_env | ||
uses: matrixorigin/CI/actions/setup-env@main | ||
with: | ||
setup-java: false | ||
- name: Prepare ENV | ||
run: | | ||
cd $GITHUB_WORKSPACE && make clean && make config && make build | ||
make install-static-check-tools | ||
make install-static-check-tools | ||
- name: Static Code Analysis | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.