Skip to content

Commit

Permalink
feat(ci): adding lint to the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
roock committed Apr 25, 2023
1 parent 7029629 commit b518b18
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run golint
on:
pull_request:
branches:
- 'main'
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: Jerome1337/[email protected]
id: golint
with:
golint-path: './'
- name: Comment gollint output to pull request
uses: Beakyn/[email protected]
if: always()
env:
GITHUB_TOKEN: ${{ github.token }}
with:
comment-message: |
### Golint Output
Output:
```
# test
${{steps.golint.outputs.golint-output}}
```
delete-previous-comment: true

0 comments on commit b518b18

Please sign in to comment.