Clean up code #1070
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 E2E Tests | |
on: push | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install root dependencies | |
run: npm ci | |
- name: Start server in the background | |
run: npm start & | |
- name: Install Cypress and run tests | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: cypress | |
browser: chrome | |
wait-on: 'http://localhost:3000' | |
config: baseUrl=http://localhost:3000 | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
if-no-files-found: ignore |