Repository navigation
Cypress-Test-Report #105
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-Test-Report | |
| # Only trigger when the build workflow succeeded | |
| on: | |
| workflow_run: | |
| workflows: ["pages-build-deployment"] | |
| types: | |
| - completed | |
| jobs: | |
| deploy: | |
| runs-on: windows-latest # Use a Windows runner | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Install All node dependencies | |
| run: npm i | |
| - name: Run Cypress tests and generate Mocha Awesome report | |
| run: | | |
| npx cypress run --record --key ${{ secrets.CYPRESS_RECORD_KEY }} --browser chrome --reporter mochawesome | |
| continue-on-error: false | |
| - name: Upload Mocha Awesome report to GitHub | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mocha-awesome-report | |
| path: mochawesome-report |