Add useHeimdall hook and prefetch abis from heimdall backend #68
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: E2E on Chrome | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create .env.local in nextjs | |
run: | | |
touch packages/nextjs/.env.local | |
echo NEXT_PUBLIC_HEIMDALL_URL=${{ secrets.NEXT_PUBLIC_HEIMDALL_URL }} >> packages/nextjs/.env.local | |
echo NEXT_PUBLIC_ETHERSCAN_V2_API_KEY=${{ secrets.NEXT_PUBLIC_ETHERSCAN_V2_API_KEY }} >> packages/nextjs/.env.local | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: packages/nextjs | |
browser: chrome | |
start: yarn dev | |
wait-on: "http://localhost:3000" |