Skip to content

Commit 405468e

Browse files
authored
Compile tests together (#3815)
* Compile tests together * build-all * Remove BUILD_ALL=true * trigger * trigger * remove trigger
1 parent 48a6ec3 commit 405468e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/checks.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ jobs:
7676
FAILING_TESTS_PATTERN: '/composites/dydx-rewards/|/composites/glv-token/|/composites/gm-token/|/core/bootstrap/|/sources/bitgo-reserves-test/|/sources/bitgo-reserves/|/sources/coinpaprika/|/sources/cryptocompare/|/sources/icap/|/sources/ipfs/|/sources/layer2-sequencer-health/|/sources/s3-csv-reader/|/sources/view-function-multi-chain/|sources/view-function/|/k6/|/observation/'
7777
run: |
7878
echo "Tests that should compile:"
79-
for package in $(echo "$CHANGED_PACKAGES" | jq '.[].location + "/"' -r | grep -v -E "$FAILING_TESTS_PATTERN"); do
80-
if ! yarn tsc -b --noEmit "${package}tsconfig.test.json"; then
81-
echo "Compilation failed for $package."
82-
exit 1
83-
fi
84-
done
79+
configs_to_compile=($(echo "$CHANGED_PACKAGES" | jq '.[].location + "/tsconfig.test.json"' -r | grep -v -E "$FAILING_TESTS_PATTERN"))
80+
if [ ${#configs_to_compile[@]} -eq 0 ]; then
81+
echo "No tests to compile."
82+
else
83+
yarn tsc -b --noEmit "${configs_to_compile[@]}"
84+
fi
8585
echo "Tests that should not compile:"
8686
for package in $(echo "$CHANGED_PACKAGES" | jq '.[].location + "/"' -r | grep -E "$FAILING_TESTS_PATTERN"); do
8787
if yarn tsc -b --noEmit "${package}tsconfig.test.json"; then

0 commit comments

Comments
 (0)