33 lines
888 B
YAML
33 lines
888 B
YAML
---
|
|
name: dagger-golangci-lint
|
|
on:
|
|
push:
|
|
paths:
|
|
- "go.sum"
|
|
- "go.mod"
|
|
- "**.go"
|
|
- "scripts/errcheck_excludes.txt"
|
|
- ".github/workflows/golangci-lint.yml"
|
|
- ".golangci.yml"
|
|
pull_request:
|
|
|
|
permissions: # added using https://github.com/step-security/secure-repo
|
|
contents: read
|
|
|
|
jobs:
|
|
golangci:
|
|
permissions:
|
|
contents: read # for actions/checkout to fetch code
|
|
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
|
|
- name: Lint
|
|
uses: dagger/dagger-for-github@fc945fa66fc7bfa72bc80f85b1a1ef4bd1d30cbb # v6.11.0
|
|
with:
|
|
version: "latest"
|
|
verb: call
|
|
args: -vvv --src . make --args lint
|