Use the correct path to see if the full path length > 100 #972
Workflow file for this run
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: Go Quality Checks | |
on: [pull_request] | |
jobs: | |
check_quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: go-vet | |
run: go vet ./... | |
- name: go-fmt | |
run: FMT=`go fmt ./...` && [ -z "$FMT" ] | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
id: lint | |
with: | |
version: latest | |
args: '-c .github/.golangci.yml --out-format=colored-line-number' | |
skip-cache: true | |
- name: Print error message | |
if: always() && steps.lint.outcome == 'failure' | |
run: | | |
echo ' | |
Linting failed. On your local machine, please run | |
golangci-lint run -c .github/.golangci.yml --fix | |
and check in the changes.' | |
exit 1 |