github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/.github/workflows/lint-go.yml (about)

     1  name: Go Linting
     2  
     3  on:
     4    push:
     5      branches: [main]
     6    pull_request:
     7      branches: [main]
     8  
     9  jobs:
    10    go-lint:
    11      runs-on: ubuntu-latest
    12      steps:
    13        - name: Checkout
    14          uses: actions/checkout@v2
    15        - uses: actions/setup-go@v2
    16          with:
    17            go-version: '^1.19.0'
    18        - name: Run revive action
    19          uses: korniltsev/revive-action@v6
    20          with:
    21            config: revive.toml
    22            # same as in the `lint` rule of Makefile
    23            exclude: 'examples/...;vendor/...;./pkg/agent/pprof/...'