File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments