ci: Use golang-ci linter

This commit is contained in:
Marco Trevisan (Treviño)
2023-11-07 11:51:27 +02:00
parent a85a609bbe
commit 44c364e364
3 changed files with 93 additions and 4 deletions

22
.github/workflows/lint.yaml vendored Normal file
View File

@@ -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