Skip to content

Commit

Permalink
ci: run vulncheck, lint sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Jun 21, 2024
1 parent 065003e commit db4e573
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,13 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
- name: go build
run: go build -v ./...

govulncheck:
name: govulncheck
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.3
go-package: ./...

golangci:
name: lint
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
- name: govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...

0 comments on commit db4e573

Please sign in to comment.