Skip to content

Commit

Permalink
ci: update workflow to work on ci and fix tool installs (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
  • Loading branch information
codyoss and gcf-merge-on-green[bot] authored Oct 30, 2024
1 parent f0da672 commit cb6c587
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/generator.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Client Generator

on: [push]
on: [push, pull_request]

permissions:
contents: read


jobs:
build:
Expand Down Expand Up @@ -47,8 +51,8 @@ jobs:
- run: go vet ./...
- run: |
# unparam does not seem to have releases. Using `latest` sounds risky.
go get mvdan.cc/unparam@57a3b4290ba3724102fdbbe72314f2b782d4bef5
go run mvdan.cc/unparam ./...
go install mvdan.cc/unparam@57a3b4290ba3724102fdbbe72314f2b782d4bef5
unparam ./...
- name: Run `staticcheck`
uses: dominikh/[email protected]
with:
Expand Down Expand Up @@ -77,5 +81,5 @@ jobs:
- name: Display Go version
run: go version
- run: |
go get golang.org/x/vuln/cmd/[email protected]
go run golang.org/x/vuln/cmd/govulncheck ./...
go install golang.org/x/vuln/cmd/[email protected]
govulncheck ./...

0 comments on commit cb6c587

Please sign in to comment.