CI: enforce 500-line file limit
This commit is contained in:
1 file changed
+5
@@ -33,6 +33,11 @@ jobs:
|
|||||||
- name: Format
|
- name: Format
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; }
|
run: test -z "$(gofmt -l .)" || { gofmt -l .; exit 1; }
|
||||||
|
- name: File size limit
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
run: |
|
||||||
|
big=$(git ls-files '*.go' '*.html' | xargs wc -l | awk '$2!="total" && $1>500')
|
||||||
|
test -z "$big" || { echo "$big"; exit 1; }
|
||||||
- name: Build and vet every platform
|
- name: Build and vet every platform
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user