@@ -9,6 +9,15 @@ jobs:
|
||||
- name: Checkout repository code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6.5.0
|
||||
with:
|
||||
go-version: '1.26.6'
|
||||
cache-dependency-path: go.sum
|
||||
|
||||
- name: Print toolchain version
|
||||
run: go version
|
||||
|
||||
- name: Verify formatting
|
||||
run: |
|
||||
files="$(gofmt -l .)"
|
||||
@@ -25,4 +34,6 @@ jobs:
|
||||
run: go vet ./...
|
||||
|
||||
- name: Run golangci-lint
|
||||
run: golangci-lint run
|
||||
uses: golangci/golangci-lint-action@v9.0.0
|
||||
with:
|
||||
version: v2.12.2
|
||||
|
||||
Reference in New Issue
Block a user