Skip to content

Commit

Permalink
added a github action to lint PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
hubchub committed Apr 11, 2023
1 parent d0f38cb commit 88b30ed
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint on PR
on:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: '1.19'

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

0 comments on commit 88b30ed

Please sign in to comment.