forked from spidernet-io/spiderpool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Optimize CI fails sporadically.
Signed-off-by: tao.yang <[email protected]>
- Loading branch information
Showing
26 changed files
with
1,812 additions
and
156 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 |
---|---|---|
|
@@ -29,8 +29,8 @@ jobs: | |
name: Deduce required tests from code changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
check: ${{ steps.result.outputs.check }} | ||
ref: ${{ steps.result.outputs.ref }} | ||
check: ${{ env.check }} | ||
ref: ${{ env.ref }} | ||
steps: | ||
- name: Check Go Code Changes | ||
uses: dorny/[email protected] | ||
|
@@ -53,22 +53,22 @@ jobs: | |
run: | | ||
if ${{ github.event_name == 'push' }} ; then | ||
echo "trigger by push" | ||
echo "::set-output name=check::true" | ||
echo "::set-output name=ref::${{ github.sha }}" | ||
echo "check=true" >> $GITHUB_ENV | ||
echo "ref=${{ github.sha }}" >> $GITHUB_ENV | ||
elif ${{ github.event_name == 'pull_request' }} ; then | ||
echo "trigger by pull_request" | ||
flag=${{ steps.filter_pr.outputs.src }} | ||
echo "::set-output name=check::${flag}" | ||
echo "check=${flag}" >> $GITHUB_ENV | ||
ref=${{ github.event.pull_request.head.sha }} | ||
echo "::set-output name=ref::${ref}" | ||
echo "ref=${ref}" >> $GITHUB_ENV | ||
elif ${{ inputs.ref != '' }} ; then | ||
echo "trigger by workflow_call" | ||
echo "::set-output name=check::true" | ||
echo "::set-output name=ref::${{ inputs.ref }}" | ||
echo "check=true" >> $GITHUB_ENV | ||
echo "ref=${{ inputs.ref }}" >> $GITHUB_ENV | ||
elif ${{ github.event_name == 'workflow_dispatch' }} ; then | ||
echo "trigger by workflow_dispatch" | ||
echo "::set-output name=check::true" | ||
echo "::set-output name=ref::${{ github.event.inputs.ref }}" | ||
echo "check=true" >> $GITHUB_ENV | ||
echo "ref=${{ github.event.inputs.ref }}" >> $GITHUB_ENV | ||
else | ||
echo "error, unexpected event " | ||
exit 1 | ||
|
@@ -80,9 +80,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.4 | ||
go-version: 1.23.2 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
@@ -103,7 +103,7 @@ jobs: | |
- name: Run golangci-lint | ||
id: golangci_lint | ||
continue-on-error: true | ||
uses: golangci/golangci-lint-action@v3 | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: latest | ||
|
||
|
@@ -136,9 +136,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.4 | ||
go-version: 1.23.2 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
@@ -190,9 +190,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.4 | ||
go-version: 1.23.2 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
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
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
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
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.