Update workflow versioning (#6165)

* Use major version pinning for actions to reduce dependeabot churn.
* Use tilde matching for Go versions to use the latest patch release.
* Checkout before installing Go to fix go module caching.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
Ben Kochie
2023-06-18 11:23:25 +02:00
committed by GitHub
parent b868350fc2
commit 7e6d3bb533
9 changed files with 45 additions and 45 deletions

View File

@@ -6,10 +6,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20.0'
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
go-version: '~1.20.0'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.6.0
with: