You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add additional filters for `find` so it does not need to traverse
irrelevant dirs
- Allow parallel golangci-lint runs so node/ and sdk/ run at the same
time
printf"%s\n""cspell is not installed. Skipping spellcheck"
61
66
else
62
-
cspell "*/**.*md"
67
+
cspell "*/**.*md"&
68
+
CSPELL_PID=$!
63
69
fi
64
-
70
+
65
71
# === Go linting
66
72
# Check for dependencies
67
73
if!command -v golangci-lint >/dev/null 2>&1;then
68
74
printf"%s\n""Require golangci-lint. You can run this command in a docker container instead with '-c' and not worry about it or install it: https://golangci-lint.run/usage/install/"
69
75
fi
70
76
71
77
# Do the actual linting!
72
-
cd"$ROOT"/node
73
-
golangci-lint run --timeout=10m $GOLANGCI_LINT_ARGS ./...
78
+
(
79
+
cd"$ROOT"/node
80
+
golangci-lint run --timeout=10m --allow-parallel-runners $GOLANGCI_LINT_ARGS ./...
81
+
) &
82
+
NODE_PID=$!
83
+
84
+
(
85
+
cd"${ROOT}/sdk"
86
+
golangci-lint run --timeout=10m --allow-parallel-runners $GOLANGCI_LINT_ARGS ./...
87
+
) &
88
+
SDK_PID=$!
89
+
90
+
wait$NODE_PID|| LINT_EXIT=1
91
+
wait$SDK_PID|| LINT_EXIT=1
92
+
93
+
if [ -n"${CSPELL_PID:-}" ];then
94
+
wait$CSPELL_PID|| LINT_EXIT=1
95
+
fi
74
96
75
-
cd"${ROOT}/sdk"
76
-
golangci-lint run --timeout=10m $GOLANGCI_LINT_ARGS ./...
0 commit comments