Skip to content

Commit

Permalink
ci: add GitHub Workflow for golangci-lint
Browse files Browse the repository at this point in the history
Based on the example in the golangci-lint GitHub Action documentnation.

See-also: https://github.com/golangci/golangci-lint-action
Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Jun 12, 2023
1 parent 69a0a22 commit 2b8096e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: golangci-lint
on:
push:
branches:
- main
pull_request:

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.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --verbose --timeout=15m

0 comments on commit 2b8096e

Please sign in to comment.