Skip to content

Commit

Permalink
Merge pull request #1092 from 10up/update/991
Browse files Browse the repository at this point in the history
GH Action Summary
  • Loading branch information
peterwilsoncc authored Jun 30, 2023
2 parents f33e916 + 1074fde commit ca8b8d3
Show file tree
Hide file tree
Showing 5 changed files with 1,139 additions and 5 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,22 @@ jobs:
- name: Test
run: npm run cypress:run --config-file tests/cypress/config.js

- name: Upload artifacts
uses: actions/upload-artifact@v2
- 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/screenshots/
${{ github.workspace }}/tests/cypress/videos/
${{ github.workspace }}/tests/cypress/logs/
${{ github.workspace }}/tests/cypress/reports/
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ docs-built

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

distributor.zip
Loading

0 comments on commit ca8b8d3

Please sign in to comment.