Skip to content

Commit

Permalink
dev: remove stable from actions/setup-go (golangci#3055)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
2 people authored and SeigeC committed Apr 4, 2023
1 parent c362d8f commit 3b9a6cc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 20 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/post-release.yml
Expand Up @@ -14,9 +14,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: 1.19

- name: Update GitHub action config
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr-extra.yml
Expand Up @@ -13,9 +13,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: 1.19
- name: Run go list
run: go list -json -m all > go.list
Expand Down
30 changes: 18 additions & 12 deletions .github/workflows/pr.yml
Expand Up @@ -16,9 +16,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -36,9 +37,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
# go-version: ${{ env.GO_VERSION }} # todo(ldez) uncomment after the next release v1.48.0
go-version: 1.18
- name: lint
Expand All @@ -57,9 +59,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
- name: Run tests
run: make.exe test
Expand All @@ -73,9 +76,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
- name: Run tests
run: make test
Expand All @@ -93,9 +97,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: ${{ matrix.golang }}
- uses: actions/cache@v3
with:
Expand All @@ -119,9 +124,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: ${{ env.GO_VERSION }}
- name: Check generated files are up to date
run: make fast_check_generated
10 changes: 6 additions & 4 deletions .github/workflows/tag.yml
Expand Up @@ -14,9 +14,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: 1.19
- name: Unshallow
run: git fetch --prune --unshallow
Expand All @@ -43,9 +44,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
# Keep the following comment to be able to use rc and beta version of Go (ex: 1.18.0-rc.1).
# https://github.com/actions/setup-go#supported-version-syntax
# stable: 'false'
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
go-version: 1.19

- name: Unshallow
Expand Down

0 comments on commit 3b9a6cc

Please sign in to comment.