-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from hertz-contrib/update-ci
chore: update ci to use ubuntu-latest by default
- Loading branch information
Showing
3 changed files
with
24 additions
and
42 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 |
---|---|---|
|
@@ -4,14 +4,16 @@ on: [ pull_request ] | |
|
||
jobs: | ||
compliant: | ||
runs-on: [ self-hosted, X64 ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check License Header | ||
uses: apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff | ||
uses: apache/skywalking-eyes/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: typos-action | ||
- name: Check Spell | ||
uses: crate-ci/typos@master | ||
|
||
resolve-modules: | ||
|
@@ -26,18 +28,24 @@ jobs: | |
- id: set-matrix | ||
run: ./hack/resolve-modules.sh | ||
|
||
lint: | ||
name: lint module | ||
golangci-lint: | ||
runs-on: ubuntu-latest | ||
needs: resolve-modules | ||
strategy: | ||
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Lint | ||
uses: golangci/golangci-lint-action@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
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: true | ||
|
||
- name: Golangci Lint | ||
# https://golangci-lint.run/ | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
version: latest | ||
working-directory: ${{ matrix.workdir }} | ||
args: -E gofumpt --timeout 10m | ||
skip-pkg-cache: true | ||
skip-pkg-cache: true |
This file was deleted.
Oops, something went wrong.
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