Skip to content

Commit

Permalink
ci(lint): fix linter for multi-module repo
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed Apr 7, 2024
1 parent 2e99061 commit 4852b27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
golangci:
name: golangci
runs-on: ubuntu-latest
strategy:
matrix:
modules: [ ".", "./functions/src/data/init", "./functions/src/data/fetch", "./functions/src/data/load", "./functions/src/handlers/lookup"]
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -23,7 +26,7 @@ jobs:
version: latest

# Optional: working directory, useful for monorepos
# working-directory: somedir
working-directory: ${{ matrix.modules }}

# Optional: golangci-lint command line arguments.
args: -E misspell -E revive -E bodyclose -E errname -E gofmt --timeout=5m
Expand Down

0 comments on commit 4852b27

Please sign in to comment.