From ff9225db7ab5e77bfd1ca5154d2c6420978bb7d0 Mon Sep 17 00:00:00 2001 From: Denis Date: Fri, 6 Oct 2023 21:34:22 +0300 Subject: [PATCH] Add non-zero exits to ci example scripts --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11c33263..97bef09b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,7 +39,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/setup - - run: node ./examples/single-price.js + - run: node ./examples/single-price.js | grep "Error" && exit 1 || exit 0 env: INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} @@ -48,6 +48,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/setup - - run: node ./examples/multiple-prices.js + - run: node ./examples/multiple-prices.js | grep "Error" && exit 1 || exit 0 env: INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}