We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 229651c commit c51c124Copy full SHA for c51c124
.github/workflows/lint.yml
@@ -42,6 +42,14 @@ jobs:
42
43
BUILD_TAGS=rocksdb,grocksdb_clean_link
44
go build -tags $BUILD_TAGS ./cmd/chain-maind
45
- golangci-lint run --output.text.path stdout --path-prefix=./ --timeout 30m --build-tags $BUILD_TAGS
+ golangci-lint run --fix --output.text.path stdout --path-prefix=./ --timeout 30m --build-tags $BUILD_TAGS
46
# Check only if there are differences in the source code
47
if: steps.changed-files.outputs.any_changed == 'true'
48
+ - name: check working directory is clean
49
+ id: changes
50
+ run: |
51
+ set +e
52
+ (git diff --no-ext-diff --exit-code)
53
+ echo "changed=$?" >> $GITHUB_OUTPUT
54
+ - if: steps.changes.outputs.changed == 1
55
+ run: echo "Working directory is dirty" && exit 1
0 commit comments