Feature/insert image to prompt #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/golangci-lint@v1.61.0 | |
- 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 }} |