Skip to content

update lint.yaml

update lint.yaml #12

Workflow file for this run

name: Lint
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Install reviewdog
run: |
go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest
- name: Run golangci-lint with reviewdog
run: |
golangci-lint run --out-format=line-number | reviewdog -f=golangci-lint -reporter=github-check
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}