Skip to content

Commit

Permalink
run golangci-lint on all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Apr 29, 2022
1 parent 97b5d95 commit c071ded
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,31 @@ name: linter

permissions:
contents: read
pull-requests: read

jobs:
lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
strategy:
matrix:
go-version: [1.x]
platform: [ubuntu-latest]

# golangci-lint will only process a single module, so we need to call it
# separately for each module in the repo. We dont lint example/newreposecretwithlibsodium
# since that needs libsodium to run.
working-directory:
- ""
- example
- scrape
- update-urls
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v3

- name: golangci-lint
- name: golangci-lint ${{ matrix.working-directory }}
uses: golangci/golangci-lint-action@b517f99ae23d86ecc4c0dec08dcf48d2336abc29 #v2.5.2
with:
version: v1.44.0
working-directory: ${{ matrix.working-directory}}
args: --verbose

0 comments on commit c071ded

Please sign in to comment.