Skip to content

Update actions/checkout action to v4 #219

Update actions/checkout action to v4

Update actions/checkout action to v4 #219

Workflow file for this run

name: reviewdog
on:
pull_request:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- uses: reviewdog/action-setup@v1
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3
golangci-lint --version
- name: Run golangci-lint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
golangci-lint run --timeout 3m | reviewdog -f=golangci-lint -reporter=github-pr-review -filter-mode=diff_context -fail-on-error=true