File tree 3 files changed +22
-5
lines changed
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,17 @@ jobs:
73
73
- name : Compile tests
74
74
env :
75
75
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/ '
77
77
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
82
87
if yarn tsc -b --noEmit "${package}tsconfig.test.json"; then
83
88
echo "Compilation succeeded for $package. Remove it from FAILING_TESTS_PATTERN so it doesn't break again in the future."
84
89
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