Skip to content

Commit

Permalink
fix: use golangci in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 9, 2023
1 parent 9515f7f commit 517b84e
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ jobs:
with:
buf_token: ${{ secrets.BUF_TOKEN }}

# TODO(@john): Figure out why linting passes locally but not here.
# golangci:
# runs-on: ubuntu-latest
# steps:
# # Run `git checkout`
# - uses: actions/checkout@v3
# # Install `go`
# - uses: actions/setup-go@v3
# # Lint Go files
# - uses: golangci/golangci-lint-action@v3
# with:
# args: --timeout=10m
golangci:
name: lint
runs-on: ubuntu-latest
steps:
# Run `git checkout`
- uses: actions/checkout@v3
# Install `go`
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
# Lint Go files
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=10m

0 comments on commit 517b84e

Please sign in to comment.