2024-08-07 15:49:16 +03:00
|
|
|
---
|
|
|
|
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
|
2024-11-08 11:42:37 +03:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2024-08-07 15:49:16 +03:00
|
|
|
- name: Lint
|
2024-11-08 11:42:37 +03:00
|
|
|
uses: dagger/dagger-for-github@ad6a4e308a42fb2cf9be8b060f9aba9d57d4c9aa # v6.14.0
|
2024-08-07 15:49:16 +03:00
|
|
|
with:
|
|
|
|
version: "latest"
|
|
|
|
verb: call
|
|
|
|
args: -vvv --src . make --args lint
|