diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d1f6f056..56a9c950 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,5 @@ name: lint on: push -env: - GO_VERSION: "1.20.8" jobs: buf: @@ -32,7 +30,7 @@ jobs: - name: 🐿 Setup Golang uses: actions/setup-go@v4 with: - go-version: ${{env.GO_VERSION}} + go-version-file: 'go.mod' # Lint go files with golangci-lint - name: Lint go files with golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ca6008bd..636ffc07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,5 @@ name: test on: push -env: - GO_VERSION: "1.20.8" jobs: test: @@ -14,7 +12,7 @@ jobs: - name: 🐿 Setup Golang uses: actions/setup-go@v4 with: - go-version: ${{env.GO_VERSION}} + go-version-file: 'go.mod' # Test & coverage report creation - name: Test & coverage report creation run: go test -cover -mod=readonly ./x/... \ No newline at end of file