summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint.yaml')
-rw-r--r--.github/workflows/lint.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
new file mode 100644
index 0000000..771e735
--- /dev/null
+++ b/.github/workflows/lint.yaml
@@ -0,0 +1,22 @@
+on: [push, pull_request]
+name: Lint
+
+permissions:
+ contents: read
+
+jobs:
+ golangci:
+ name: lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-go@v4
+ with:
+ go-version: '1.21'
+ cache: false
+ - name: Install PAM
+ run: sudo apt install -y libpam-dev
+ - name: golangci-lint
+ uses: golangci/golangci-lint-action@v3
+ with:
+ version: v1.54