Skip to content

add all events reference #2073

add all events reference

add all events reference #2073

Workflow file for this run

name: Website-e2e
on:
push:
branches: [main, alpha, dev]
pull_request:
branches: [main, alpha, dev]
jobs:
cypress-run:
runs-on: ubuntu-22.04
env:
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID}}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: '20.5.1'
- run: pnpm i --prefer-frozen-lockfile
- run: pnpm build
- name: Set up Cypress binary cache
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('pnpm-lock.yaml') }}
- name: Cypress install
uses: cypress-io/github-action@v6
with:
runTests: false
- name: Cypress verify
run: pnpm cypress verify || pnpm cypress install
working-directory: packages/website
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install: false
working-directory: packages/website
command: pnpm -r --filter @usecannon/website run e2e:headless
env:
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CANNON_E2E_RPC_URL_SEPOLIA: ${{ secrets.CANNON_E2E_RPC_URL_SEPOLIA }}
CANNON_E2E_RPC_URL_ETHEREUM: ${{ secrets.CANNON_E2E_RPC_URL_ETHEREUM }}