-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update go * update all modules --------- Co-authored-by: kt <[email protected]>
- Loading branch information
1 parent
4dbcde4
commit 1c035ea
Showing
4 changed files
with
257 additions
and
378 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 |
---|---|---|
|
@@ -8,6 +8,10 @@ on: | |
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
GO_VER: '1.22.2' | ||
|
||
|
||
jobs: | ||
lint: | ||
timeout-minutes: 10 | ||
|
@@ -17,19 +21,15 @@ jobs: | |
uses: actions/checkout@v4 | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.5' | ||
- | ||
name: Install lint deps | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
go-version: ${{ env.GO_VER }} | ||
cache: false | ||
- | ||
name: Run Lint | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
run: | | ||
golangci-lint run --timeout 5m | ||
name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
version: v1.54 | ||
|
||
test: | ||
timeout-minutes: 10 | ||
|
@@ -39,12 +39,12 @@ jobs: | |
uses: actions/checkout@v4 | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.5' | ||
go-version: ${{ env.GO_VER }} | ||
- | ||
name: Symlink go | ||
run: sudo ln -f -s /opt/hostedtoolcache/go/1.21.5/x64/bin/* /usr/bin/ | ||
run: sudo ln -f -s /opt/hostedtoolcache/go/${{ env.GO_VER }}/x64/bin/* /usr/bin/ | ||
- | ||
name: Install ginkgo | ||
shell: bash --noprofile --norc -x -eo pipefail {0} | ||
|
@@ -57,7 +57,9 @@ jobs: | |
- | ||
name: Run spec suite | ||
working-directory: . | ||
run: sudo -E go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --vv --trace --keep-going --output-interceptor-mode=none ./spec | ||
run: | | ||
go mod tidy | ||
sudo -E go run github.com/onsi/ginkgo/v2/ginkgo -r --randomize-all --randomize-suites --vv --trace --keep-going --output-interceptor-mode=none ./spec | ||
- | ||
name: Run test suite | ||
working-directory: . | ||
|
@@ -74,9 +76,9 @@ jobs: | |
fetch-depth: 0 | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.5' | ||
go-version: ${{ env.GO_VER }} | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
|
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.