chore(deps): update dependency eslint to v8.57.1 #653
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
# SPDX-License-Identifier: Apache-2.0 | |
# Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest | |
name: Cypress Tests | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-e2e-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
browser: ['electron', 'firefox'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node + pnpm install | |
uses: ./.github/actions/setup-node | |
with: | |
pnpm-version: 9 | |
- name: Run Cypress Tests | |
uses: cypress-io/github-action@v6 | |
with: | |
start: pnpm dlx http-server dist -p 4173 | |
build: pnpm build | |
wait-on: 'http://localhost:4173' # Adjust according to your server port | |
wait-on-timeout: 60 | |
command: pnpm exec cypress run --browser ${{ matrix.browser }} --headless --config baseUrl=http://localhost:4173,video=true | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
name: Upload cypress screenshots if tests fail | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
if-no-files-found: ignore | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
name: Upload cypress videos if tests fail | |
with: | |
name: cypress-videos | |
path: cypress/videos | |
if-no-files-found: ignore |