This repository was archived by the owner on Apr 23, 2025. It is now read-only.
add placeholder for returns list #150
This file contains hidden or 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 E2E Tests | |
| on: push | |
| jobs: | |
| cypress-run: | |
| # If you want this job to run on your fork, remove the below "if" line. | |
| # You will need to "fix" the tests as they are specific to Adobe Commmerce's | |
| # demo backend. | |
| if: github.repository == 'hlxsites/aem-boilerplate-commerce' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install root dependencies | |
| run: npm ci | |
| - name: Start server in the background | |
| run: npm start & | |
| - name: Install Cypress and run tests | |
| uses: cypress-io/github-action@v6 | |
| with: | |
| working-directory: cypress | |
| browser: chrome | |
| wait-on: 'http://localhost:3000' | |
| config: baseUrl=http://localhost:3000 | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: cypress-screenshots | |
| path: cypress/screenshots | |
| if-no-files-found: ignore |