Merge pull request #470 from heckenmann/dependabot/npm_and_yarn/app-s… #13
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 | |
env: | |
NODE_VERSION: 20 | |
WORKING_DIRECTORY: ./app-src | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install global dependencies | |
run: yarn global add concurrently | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ${{ env.WORKING_DIRECTORY }} | |
start: yarn run start | |
install-command: yarn --frozen-lockfile | |
command: yarn run cy:run | |
wait-on: 'http://localhost:3000' | |
browser: chrome, firefox, edge |