Chore: upgrade actions and fixed golangci-lint version

This commit is contained in:
Dreamacro
2022-07-21 15:15:14 +08:00
parent be8d63ba8f
commit a794819869
4 changed files with 16 additions and 24 deletions

View File

@ -6,17 +6,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Get latest go version
id: version
run: |
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ steps.version.outputs.go_version }}
check-latest: true
go-version: '1.18'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
version: v1.46.2