Fixed component name #24
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: 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 |