mirror of
https://github.com/neilotoole/sq.git
synced 2025-01-01 21:03:23 +03:00
linting enabled in workflow
This commit is contained in:
parent
70e650ef87
commit
bc626a4117
19
.github/workflows/go.yml
vendored
19
.github/workflows/go.yml
vendored
@ -8,8 +8,10 @@ on:
|
||||
env:
|
||||
GO_VERSION: 1.19.3
|
||||
GORELEASER_VERSION: 1.12.3
|
||||
GOLANGCI_LINT_VERSION: 1.50.1
|
||||
|
||||
jobs:
|
||||
|
||||
go-test:
|
||||
strategy:
|
||||
matrix:
|
||||
@ -31,10 +33,25 @@ jobs:
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Lint
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
|
||||
go-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
- uses: actions/checkout@v3
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: ${{ env.GOLANGCI_LINT_VERSION }}
|
||||
|
||||
|
||||
build-binaries-darwin:
|
||||
needs: go-test
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
@ -172,7 +189,7 @@ jobs:
|
||||
|
||||
publish:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [ build-binaries-darwin, build-binaries-linux-amd64, build-binaries-linux-arm64, build-binaries-windows ]
|
||||
needs: [ go-lint, build-binaries-darwin, build-binaries-linux-amd64, build-binaries-linux-arm64, build-binaries-windows ]
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
|
Loading…
Reference in New Issue
Block a user