Add file path for go version for github actions
@@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
- go-version: 1.18
+ go-version-file: "src/go.mod"
- run: go run github.com/onsi/ginkgo/ginkgo -r -race -randomizeAllSpecs -randomizeSuites
working-directory: src
@@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
- go-version: 1.18
+ go-version-file: "src/go.mod"
- run: go vet ./...
working-directory: src
@@ -37,9 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- - uses: actions/setup-go@v2
+ - uses: actions/setup-go@v3
with:
- go-version: 1.18
+ go-version-file: "src/go.mod"
- uses: golangci/golangci-lint-action@v3.2.0
with:
args: --config .golangci.yml
