scripts updated #71
Workflow file for this run
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: push | |
# 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: '::rocket:' | |
SLACK_USERNAME: Cypress Bot | |
SLACK_MESSAGE: E2E tests are now running. Stay tuned for updates! | |
SLACK TITLE : E2E Template Tests | |
SLACK_FOOTER: '' | |
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: | |
# start: yarn start-devnet | |
# wait-on: "http://localhost:3002" | |
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 |