#1148 benefit-finder-cms-main app stuck #4
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: Run Cypress Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- benefit-finder/* | |
permissions: read-all | |
defaults: | |
run: | |
working-directory: ./benefit-finder | |
jobs: | |
install: | |
name: cypress-run | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "./benefit-finder/package.json" | |
- name: Install Submodule | |
run: | | |
cd .. | |
git submodule init | |
git submodule update | |
cd benefit-finder | |
- name: Cypress Run Tests | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: 'chrome' | |
config-file: cypress.config.js | |
working-directory: benefit-finder | |
build: "npm run cy:build:storybook" | |
start: "npm run cy:run:pipeline" | |
- uses: actions/upload-artifact@v3 | |
if: failure () | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots |