From aa1a7a7568a9499984ff9a0d8f06c4ad82ac4d13 Mon Sep 17 00:00:00 2001 From: rapha Date: Mon, 9 Oct 2023 10:51:05 +0200 Subject: [PATCH] fix: use go version from go.mod in CI --- .github/workflows/lint.yml | 4 +--- .github/workflows/test.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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