File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,17 @@ jobs:
7373 - name : Compile tests
7474 env :
7575 CHANGED_PACKAGES : ${{ needs.install-packages.outputs.changed-packages }}
76- 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/por-address-list/|/sources/s3-csv-reader/|/sources/view-function-multi-chain/|sources/view-function/'
76+ 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/por-address-list/|/sources/s3-csv-reader/|/sources/view-function-multi-chain/|sources/view-function/|/k6/|/observation/ '
7777 run : |
78- # Tests that should compile:
79- yarn tsc -b --noEmit $(echo $CHANGED_PACKAGES | jq '.[].location + "/tsconfig.test.json"' -r | grep -v -E "$FAILING_TESTS_PATTERN")
80- # Tests that should not compile:
81- for package in $(echo "$CHANGED_PACKAGES" | jq '.[].location + "/"' -r | grep -E "$FAILING_TESTS_PATTERN"); do
78+ 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
85+ echo "Tests that should not compile:"
86+ for package in $(echo "$CHANGED_PACKAGES" | jq '.[].location + "/"' -r | grep -E "\\.|$FAILING_TESTS_PATTERN"); do
8287 if yarn tsc -b --noEmit "${package}tsconfig.test.json"; then
8388 echo "Compilation succeeded for $package. Remove it from FAILING_TESTS_PATTERN so it doesn't break again in the future."
8489 exit 1
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ../tsconfig.base.json" ,
3+ "compilerOptions" : {
4+ "noEmit" : true
5+ }
6+ }
Original file line number Diff line number Diff line change 1+ {
2+ "extends" : " ../tsconfig.base.json" ,
3+ "compilerOptions" : {
4+ "noEmit" : true
5+ }
6+ }
You can’t perform that action at this time.
0 commit comments