diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2788dc6a3ea..1fd5c884cc9b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,9 +18,9 @@ jobs: for i in $(echo ${{ steps.file_changes.outputs.files_modified}} | tr -d '[]' | tr "," "\n") do { - node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt + node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt 2>&1 node ${{ github.workspace }}/.github/workflows/commentResult.js /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i} - if grep -q '------ ERROR ------' output.txt; then + if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then exit 1; fi } || { @@ -31,9 +31,9 @@ jobs: for i in $(echo ${{ steps.file_changes.outputs.files_added}} | tr -d '[]' | tr "," "\n") do { - node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt + node ${{ github.workspace }}/test.js ${{ github.workspace }}/${i} > output.txt 2>&1 node ${{ github.workspace }}/.github/workflows/commentResult.js /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i} - if grep -q '------ ERROR ------' output.txt; then + if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then exit 1; fi } || { diff --git a/projects/stargatefinance/index.js b/projects/stargatefinance/index.js index dd7f55a9dcbb..e74445635a51 100644 --- a/projects/stargatefinance/index.js +++ b/projects/stargatefinance/index.js @@ -34,7 +34,8 @@ const tvl = (chain) => async (timestamp, ethBlock, chainBlocks) => { } = CONFIG if (chain === 'avalanche') chain = 'avax' - + + throw new Error('Chaos') const balances = {} const block = chainBlocks[chain] const tokens = []