chore: use go stable

main
sudo pacman -Syu 2023-06-30 15:01:52 +07:00
parent 77df66c1f3
commit 099cec81ad
2 changed files with 17 additions and 13 deletions

View File

@ -4,9 +4,21 @@ on:
push:
branches:
- main
paths:
- "**.go"
- "go.mod"
- "go.sum"
pull_request:
branches:
- main
paths:
- "**.go"
- "go.mod"
- "go.sum"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
@ -16,9 +28,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
go-version: "stable"
- run: go test -race -failfast .
build:
name: Build
@ -30,10 +40,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
- run: go build
go-version: "stable"
- run: go build .
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
@ -43,9 +51,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
go-version: "stable"
- uses: golangci/golangci-lint-action@v3
with:
version: latest

View File

@ -17,9 +17,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
go-version: "stable"
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser