diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index aa6920f..9b24be5 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -54,19 +54,19 @@ jobs: - name: Test run: npm run cypress:run - name: Update summary - run: | + 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: | + 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/