Skip to content

dispatch_tests

dispatch_tests #143

Workflow file for this run

name: Cypress Tests
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
workflow_dispatch:
repository_dispatch:
#"Accept": "application/vnd.github+json"
#"Authorization": "token {personal token with repo access}"
#Currently supported event types:
#environment:code:deployed
#{
# "type": "environment:code:deployed",
# "timestamp": "2024-01-26T22:16:30.000Z",
# "data": {
# "application": {
# "id": 1234,
# "name": "example-dot-com"
# },
# "branch": "develop",
# "commit": {
# "author": "example-user",
# "description": "Example commit message",
# "hash": "0abc1234e5af99deadbeefb98765432181e03b1a5b5d69"
# },
# "deploymentId": 12345678,
# "environment": {
# "domain": "develop.example.com",
# "id": 5678,
# "type": "develop"
# },
# "repo": "wpcomvip/example-dot-com"
# }
#}
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v5
with:
build: npm run cypress:automated
# start: npm start
#--spec cypress/e2e/functional/*.js, cypress/e2e/admin/*.js