File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -149,10 +149,15 @@ jobs:
149
149
keys :
150
150
- v1-pkg-cache
151
151
- run : go get -u github.com/mgechev/revive
152
+ - run : go get -u github.com/Clever/csvlint/cmd/csvlint
152
153
- run :
153
154
name : 🧹 Run Golang revive lint
154
155
command : |
155
156
sh ./check-revive.sh || exit 1
157
+ - run :
158
+ name : 🧹 Run CSV lint
159
+ command : |
160
+ sh ./check-csv.sh || exit 1
156
161
- run :
157
162
name : 🧪 Run Go test
158
163
command : |
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # print first
4
+ find . -type f -name ' *.csv' -printf ' %p\n' | xargs -t -n1 csvlint
5
+
6
+ # exit if invalid
7
+ # shellcheck disable=SC2016
8
+ find . -type f -name ' *.csv' -printf ' %p\n' | xargs -n1 sh -c ' csvlint $0 || exit 255' > /dev/null
You can’t perform that action at this time.
0 commit comments