Merge pull request #601 from KittyGiraudel/dependabot/npm_and_yarn/br… #1015
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Build files | |
run: npm run build | |
- name: Start server | |
run: npm run serve & | |
- name: Run Cypress (Chrome) | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: chrome | |
install: false | |
wait-on: 'http://localhost:5000' | |
- name: Run Cypress (Edge) | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: edge | |
install: false | |
wait-on: 'http://localhost:5000' |