From 6864876c07c8f2adfd3e81bd651edbfdaa621a79 Mon Sep 17 00:00:00 2001 From: Andrei Scripniciuc <46186670+andrei-scripniciuc@users.noreply.github.com> Date: Fri, 15 Dec 2023 14:00:03 -0800 Subject: [PATCH] feat: require golang 1.20 or later (#1299) * feat: require golang 1.20 or later * feat: use golang 1.20 in CI * feat: use golang 1.20 in CI * feat: use golang 1.20 in CI --- .github/workflows/ci.yaml | 6 +++--- go.mod | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 30f3ebe..f8317b2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: "1.20" - run: go test -p 1 ./... lint: runs-on: ubuntu-latest @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: "1.20" - name: staticcheck uses: dominikh/staticcheck-action@v1.3.0 with: @@ -30,6 +30,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: 1.18 + go-version: "1.20" - name: Run the quality checker (which catches obvious mistakes, missing docs, etc.) run: go run ./.github/quality-checker diff --git a/go.mod b/go.mod index 0b4f9fb..7704276 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/googleapis/api-linter -go 1.18 +go 1.20 require ( bitbucket.org/creachadair/stringset v0.0.11