From 3a59019c516481b9ec1d4c093a0be1c96f875370 Mon Sep 17 00:00:00 2001 From: lestrrat <49281+lestrrat@users.noreply.github.com> Date: Mon, 18 Apr 2022 21:44:48 +0900 Subject: [PATCH] Update to actions/setup-go@v3 (#702) * see if this works for setup-go@v3 * update for smoke tests * Use the notation used in the docs I guess this worked, but we'll try to be true to the docs * Update benchmark * seems like we don't need to do anything special here --- .github/workflows/benchmark.yml | 5 +++-- .github/workflows/ci.yml | 5 +++-- .github/workflows/smoke.yml | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 95de79892..b2414fcd6 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.17.x', '1.16.x' ] + go: [ '1.18', '1.17', '1.16' ] name: "Test [ Go ${{ matrix.go }} / JSON Backend ${{ matrix.json_backend }} ]" steps: - name: Checkout repository @@ -24,9 +24,10 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Install Go stable version - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} + check-latest: true - name: Install benchstat run: | go install golang.org/x/perf/cmd/benchstat@latest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffe69fbbe..dd3addb81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: go_tags: [ 'stdlib', 'goccy', 'es256k', 'all'] - go: [ '1.18.x', '1.17.x', '1.16.x' ] + go: [ '1.18', '1.17', '1.16' ] name: "Test [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]" steps: - name: Checkout repository @@ -27,9 +27,10 @@ jobs: ${{ runner.os }}-go- - name: Install Go stable version if: matrix.go != 'tip' - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} + check-latest: true - name: Install Go tip if: matrix.go == 'tip' run: | diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml index 8200fbcec..4a6008a36 100644 --- a/.github/workflows/smoke.yml +++ b/.github/workflows/smoke.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: go_tags: [ 'stdlib', 'goccy', 'es256k', 'all' ] - go: [ '1.18.x', '1.17.x', '1.16.x' ] + go: [ '1.18', '1.17', '1.16' ] name: "Smoke [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]" steps: - name: Checkout repository @@ -32,9 +32,10 @@ jobs: restore-keys: | ${{ runner.os }}-go- - name: Install Go stable version - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ${{ matrix.go }} + check-latest: true - name: Install stringer run: go install golang.org/x/tools/cmd/stringer@latest - name: Install jose