Skip to content

Commit

Permalink
Merge pull request #119 from 10up/update/106
Browse files Browse the repository at this point in the history
GH action summary added for e2e test
  • Loading branch information
jeffpaul authored Jun 30, 2023
2 parents 3e35ced + 487798a commit 4926ebd
Show file tree
Hide file tree
Showing 5 changed files with 1,820 additions and 97 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,22 @@ jobs:
run: npm run env:start
- name: Test
run: npm run cypress:run
- name: Update summary
if: always()
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/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ vendor
tests/cypress/downloads
tests/cypress/screenshots
tests/cypress/videos
tests/cypress/reports
.wp-env.override.json
Loading

0 comments on commit 4926ebd

Please sign in to comment.