Skip to content

Commit

Permalink
ci: add golangci-lint workflow
Browse files Browse the repository at this point in the history
It doesn't conform to the treefmt spec
so we run it here to catch any issues.

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee committed Jul 3, 2024
1 parent fd811ec commit 85585a8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: golangci-lint

on:
push:
tags:
- v*
branches:
- main
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.57.2
args: --timeout=2m

0 comments on commit 85585a8

Please sign in to comment.