Added Cypress E2E tests #2
Workflow file for this run
This file contains hidden or 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 | |
| on: | |
| push: | |
| pull_request: | |
| workflow_call: | |
| # Allow manually triggering the workflow. | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Cypress | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Setup DDEV | |
| uses: ddev/github-action-setup-ddev@v1 | |
| with: | |
| autostart: false | |
| # install DDEV configuration | |
| - run: ddev config --project-type=magento --php-version=8.1 --webserver-type=nginx-fpm | |
| # install composer dependencies | |
| - run: ddev composer install | |
| # install openmage | |
| - run: ddev openmage-install -q | |
| # install cypress-addon | |
| - run: ddev add-on get tyler36/ddev-cypress | |
| # start ddev | |
| - run: ddev start | |
| # run cypress | |
| - run: ddev cypress-run --config-file .cypress.config.js |