summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLevi Durfee <levi.durfee@gmail.com>2026-01-07 09:11:22 -0500
committerLevi Durfee <levi.durfee@gmail.com>2026-01-07 09:11:37 -0500
commit2ef8032a77b5c630000fc047fb0d1cee5f01e461 (patch)
tree0874aed2d5f3a6ab4e77b7ad74c9001841c625f4 /.github
parentcde8ee415e8529edb74b83d14e9abb87bdd26648 (diff)
Add linter
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/golangci-lint.yml25
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