Commit 2447afc4 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

build: wait on passing cypress (#4076)

* build: wait on passing cypress

* build: video upload
parent 8eef757f
...@@ -71,8 +71,19 @@ jobs: ...@@ -71,8 +71,19 @@ jobs:
with: with:
cidv0: ${{ steps.pinata.outputs.hash }} cidv0: ${{ steps.pinata.outputs.hash }}
# Delay updating DNS to give IPFS a chance to propagate. - uses: actions/cache@v3
- run: sleep 600 id: cypress-cache
with:
path: /home/runner/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('node_modules/cypress') }}
- if: steps.cypress-cache.outputs.cache-hit != 'true'
run: yarn cypress install
- uses: cypress-io/github-action@v4
with:
install: false
browser: chrome
config-file: cypress.release.config.ts
config: baseUrl=https://cloudflare-ipfs.com/ipfs/${{ steps.pinata.outputs.hash }}
- name: Update DNS with new IPFS hash - name: Update DNS with new IPFS hash
env: env:
......
import { defineConfig } from 'cypress'
export default defineConfig({
projectId: 'yp82ef',
pageLoadTimeout: 60000,
retries: 30,
e2e: {
specPattern: 'cypress/release.ts',
},
})
describe('Release', () => {
it('loads swap page', () => {
cy.visit('/', {
retryOnStatusCodeFailure: true,
retryOnNetworkFailure: true,
}).get('#swap-page')
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment