Skip to content

Commit

Permalink
GH action summary added
Browse files Browse the repository at this point in the history
  • Loading branch information
jayedul committed May 8, 2023
1 parent f8497d1 commit 6d32090
Show file tree
Hide file tree
Showing 5 changed files with 1,276 additions and 619 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cypress.yml
Expand Up @@ -55,3 +55,21 @@ jobs:
run: npm run env:start
- name: Test
run: npm run cypress:run
- name: Update summary
run: |
npx mochawesome-merge ./tests/cypress/reports/*.json -o tests/cypress/reports/mochawesome.json
rm -rf ./tests/cypress/reports/mochawesome-*.json
npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md
npx mochawesome-report-generator tests/cypress/reports/mochawesome.json -o tests/cypress/reports/
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
- name: Make artifacts available
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-artifact
retention-days: 2
path: |
${{ github.workspace }}/tests/cypress/screenshots/
${{ github.workspace }}/tests/cypress/videos/
${{ github.workspace }}/tests/cypress/logs/
${{ github.workspace }}/tests/cypress/reports/
5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,8 @@

.DS_Store
.wp-env.override.json

tests/cypress/downloads
tests/cypress/screenshots
tests/cypress/videos
tests/cypress/reports

0 comments on commit 6d32090

Please sign in to comment.