diff options
| author | Levi Durfee <levi.durfee@gmail.com> | 2026-01-07 09:11:22 -0500 |
|---|---|---|
| committer | Levi Durfee <levi.durfee@gmail.com> | 2026-01-07 09:11:37 -0500 |
| commit | 2ef8032a77b5c630000fc047fb0d1cee5f01e461 (patch) | |
| tree | 0874aed2d5f3a6ab4e77b7ad74c9001841c625f4 /.github | |
| parent | cde8ee415e8529edb74b83d14e9abb87bdd26648 (diff) | |
Add linter
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/golangci-lint.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 0000000..c7a4cc2 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,25 @@ +name: golangci-lint +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + # Optional: allow read access to pull requests. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v9 + with: + version: v2.6 |
