-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update CI and optimze efficiency (#1168)
- Loading branch information
1 parent
226f0e8
commit a64f390
Showing
3 changed files
with
46 additions
and
40 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 |
---|---|---|
|
@@ -11,18 +11,21 @@ jobs: | |
- name: Check License Header | ||
uses: apache/skywalking-eyes/[email protected] | ||
|
||
- name: typos-action | ||
- name: Check Spell | ||
uses: crate-ci/typos@master | ||
|
||
staticcheck: | ||
runs-on: [ self-hosted, X64 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
go-version: stable | ||
# For self-hosted, the cache path is shared across projects | ||
# and it works well without the cache of github actions | ||
# Enable it if we're going to use Github only | ||
cache: false | ||
|
||
- uses: reviewdog/action-staticcheck@v1 | ||
with: | ||
|
@@ -35,3 +38,19 @@ jobs: | |
fail_on_error: true | ||
# Set staticcheck flags | ||
staticcheck_flags: -checks=inherit,-SA1029,-SA5008 | ||
|
||
lint: | ||
runs-on: [ self-hosted, X64 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: stable | ||
cache: false # don't use cache for self-hosted runners | ||
|
||
- name: Golangci Lint | ||
# https://golangci-lint.run/ | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: latest |
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