File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353
5454 # ---------- Adapter checks (only for changed EAs) ----------
5555
56+ # Check that there are no compilation errors in test.
57+ # There are many existing tests with compilation errors, so we skip them
58+ # until we can fix them.
59+ compile-tests :
60+ name : Compile tests for changed packages
61+ runs-on : [ubuntu-latest]
62+ if : needs.install-packages.outputs.changed-packages != '[]'
63+ needs :
64+ - check-changesets
65+ - install-packages
66+ permissions :
67+ contents : read
68+ steps :
69+ - name : Check out code
70+ uses : actions/checkout@v4
71+ - name : Set up and install dependencies
72+ uses : ./.github/actions/setup
73+ - name : Compile tests
74+ env :
75+ CHANGED_PACKAGES : ${{ needs.install-packages.outputs.changed-packages }}
76+ run : yarn tsc -b --noEmit $(echo $CHANGED_PACKAGES | jq '.[].location + "/tsconfig.test.json"' -r | grep -v -E '/composites/dydx-rewards/|/composites/glv-token/|/composites/gm-token/|/core/bootstrap/|/sources/aleno/|/sources/bitgo-reserves-test/|/sources/bitgo-reserves/|/sources/coinpaprika/|/sources/cryptocompare/|/sources/dlc-btc-por/|/sources/eth-beacon/|/sources/icap/|/sources/ipfs/|/sources/layer2-sequencer-health/|/sources/por-address-list/|/sources/s3-csv-reader/|/sources/stader-balance/|/sources/token-balance/|/sources/view-function-multi-chain/|sources/view-function/')
77+
5678 # Run unit tests
5779 unit-tests :
5880 name : Run unit tests for changed adapters
You can’t perform that action at this time.
0 commit comments