Skip to content

Commit

Permalink
added github action for ci linting (#11)
Browse files Browse the repository at this point in the history
* added github action for ci linting

* Update .github/workflows/golangci-lint.yml

Co-authored-by: Enrico Candino <[email protected]>
Signed-off-by: Emile <[email protected]>

* removed unnecessary comments

Co-authored-by: Enrico Candino <[email protected]>
Signed-off-by: Emile <[email protected]>

* removed more unnecessary comments

Co-authored-by: Enrico Candino <[email protected]>
Signed-off-by: Emile <[email protected]>

Signed-off-by: Emile <[email protected]>
Co-authored-by: Emile <[email protected]>
Co-authored-by: Enrico Candino <[email protected]>
  • Loading branch information
3 people authored Oct 20, 2022
1 parent b267927 commit 3232716
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

0 comments on commit 3232716

Please sign in to comment.