Skip to content

Improve UX for removed embedded content #1064

Improve UX for removed embedded content

Improve UX for removed embedded content #1064

Workflow file for this run

name: Cypress Tests
on:
pull_request:
push:
branches:
- main
env:
NEXT_PUBLIC_OZONE_SERVICE_DID: did:plc:ar7c4by46qjdydhdevvrndac
NEXT_PUBLIC_PLC_DIRECTORY_URL: https://plc.directory
NEXT_PUBLIC_HANDLE_RESOLVER_URL: https://api.bsky.app
jobs:
cypress-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable Corepack
run: corepack enable
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
**/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
- name: Install dependencies
run: yarn install
- name: Build application
run: yarn build
# Run E2E tests
- name: Cypress E2E Tests
uses: cypress-io/github-action@v5
with:
install: false # Skip installation as we've already done it
start: yarn start # Start the app server
browser: chrome
wait-on: 'http://localhost:3000' # Wait for the server to be ready
# Run Component tests
- name: Cypress Component Tests
uses: cypress-io/github-action@v5
with:
install: false # Skip installation again
component: true # Run component tests
browser: chrome
# Upload screenshots if either test type fails
- name: Upload Screenshots on Failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore