From 517b84e4926812a0b3ce88caac87734cdaa6af5f Mon Sep 17 00:00:00 2001 From: rapha Date: Mon, 9 Oct 2023 10:19:24 +0200 Subject: [PATCH] fix: use golangci in github action --- .github/workflows/lint.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index accc8d20..22b31f60 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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