perf: fix hang when leaving G-Code Preview page (#1949) #2641
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 Tests | |
on: | |
# Triggers the workflow on push or pull request events but only for the develop branch | |
push: | |
branches: [develop] | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
# container: cypress/browsers:node16.13.2-chrome97-ff96 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build the application | |
run: npm run build | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run preview |