Development #74
This file contains 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 Tests | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
Slack-Notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@master | |
env: | |
if: always() | |
SLACK_ICON_EMOJI: ':robot_face:' | |
SLACK_USERNAME: Cypress Bot | |
SLACK_MESSAGE: E2E tests are now running. Stay tuned for updates! | |
SLACK_TITLE : 'Cypress' | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
Cypress-Run: | |
runs-on: ubuntu-latest | |
needs: Slack-Notification | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cypress run | |
uses: cypress-io/github-action@v4 | |
with: | |
command: npm run cy:run | |
- name: Uploading artifact | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: cypress-execution-report | |
path: | | |
/home/runner/work/mx-template-dapp/mx-template-dapp/mochawesome-report/mochawesome.html | |
/home/runner/work/mx-template-dapp/mx-template-dapp/cypress/screenshots | |
/home/runner/work/mx-template-dapp/mx-template-dapp/cypress/videos |