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

@ -4,15 +4,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- 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: Check out code into the Go module directory
uses: actions/checkout@v3