diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 829c3e1f..a532bc65 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: Run tests run: make test - name: Run build diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c1f78d6c..f7e87ebb 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: Install TFLint run: curl -sL https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash - name: Install plugin (Linux) diff --git a/.github/workflows/generated_code_checks.yml b/.github/workflows/generated_code_checks.yml index 827d48fb..ce726b34 100644 --- a/.github/workflows/generated_code_checks.yml +++ b/.github/workflows/generated_code_checks.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: go run ./apispec-rule-gen working-directory: ./tools run: go run ./apispec-rule-gen && git diff --exit-code diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 36edbb12..7e2fe01f 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c3af2481..5f8b709b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: Run linters run: | export PATH=$PATH:$(go env GOPATH)/bin diff --git a/.github/workflows/maintenance.yaml b/.github/workflows/maintenance.yaml index 77bd2b2c..827b1132 100644 --- a/.github/workflows/maintenance.yaml +++ b/.github/workflows/maintenance.yaml @@ -13,7 +13,7 @@ jobs: submodules: true - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - run: | cd tools/apispec-rule-gen/schema terraform init -upgrade diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90d51a80..0f885308 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v3 with: