Skip to content

Commit

Permalink
Merge pull request #99 from 1inch/feature/patch-examples
Browse files Browse the repository at this point in the history
[SC-957] Patch examples
  • Loading branch information
ZumZoom authored Oct 7, 2023
2 parents 94cfae8 + ff9225d commit dc53738
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 33 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,21 @@ jobs:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
RPC_AUTH_HEADER: ${{ secrets.RPC_AUTH_HEADER }}
- uses: codecov/codecov-action@v3

single-price-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: node ./examples/single-price.js | grep "Error" && exit 1 || exit 0
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

multiple-prices-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: node ./examples/multiple-prices.js | grep "Error" && exit 1 || exit 0
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
40 changes: 20 additions & 20 deletions examples/multiple-prices.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dc53738

Please sign in to comment.