diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e69de29..64865a2 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -0,0 +1,30 @@ +name: lint + +on: + push: + branches: + - main + paths-ignore: + - "**.md" + pull_request: + branches: + - main + paths-ignore: + - "**.md" + +permissions: read-all + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v4 + with: + go-version: "1.20" + + - name: lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.52.0