Skip to content

Adding badges

Adding badges #10

Workflow file for this run

name: Cypress
on:
push:
branches:
- 1.x
pull_request:
branches:
- 1.x
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install NPM dependencies
run: npm install
- name: Install Xvfb
run: sudo apt-get install -y xvfb
- name: Start Xvfb
run: Xvfb :99 -screen 0 1280x1024x24 &
env:
DISPLAY: :99.0
- name: Start Storybook
run: npm run storybook &
env:
DISPLAY: :99.0
- name: Wait for Storybook to be ready
run: npx wait-on --timeout http://localhost:6006
- name: Run Cypress tests
run: npm run cypress
env:
DISPLAY: :99.0