Skip to content

WIP metadata

WIP metadata #43

Workflow file for this run

on: [push, pull_request]
name: linter
permissions:
contents: read
pull-requests: read
jobs:
lint:
strategy:
matrix:
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
- tools
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.x
- name: golangci-lint ${{ matrix.working-directory }}
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
working-directory: ${{ matrix.working-directory}}
args: --verbose