add custom errors and filter when not applicable #140
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js Build and Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test | |
env: | |
ETHEREUM_PROVIDER_URL: ${{ secrets.ETHEREUM_PROVIDER_URL }} | |
OPTIMISM_PROVIDER_URL: ${{ secrets.OPTIMISM_PROVIDER_URL }} | |
BSC_PROVIDER_URL: ${{ secrets.BSC_PROVIDER_URL }} | |
POLYGON_PROVIDER_URL: ${{ secrets.POLYGON_PROVIDER_URL }} | |
FANTOM_PROVIDER_URL: ${{ secrets.FANTOM_PROVIDER_URL }} | |
BASE_PROVIDER_URL: ${{ secrets.BASE_PROVIDER_URL }} | |
ARBITRUM_PROVIDER_URL: ${{ secrets.ARBITRUM_PROVIDER_URL }} | |
AVALANCHE_PROVIDER_URL: ${{ secrets.AVALANCHE_PROVIDER_URL }} | |
LINEA_PROVIDER_URL: ${{ secrets.LINEA_PROVIDER_URL }} | |
ENABLE_MULTICALL_QUEUE: true | |
- name: Verify eslint config | |
run: npm run lint | |
- name: Verify prettier config | |
run: npm run prettier | |
- name: Verify that the code builds | |
run: npm run build |