Skip to content

Commit

Permalink
Adjust the Cypress workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Apr 12, 2024
1 parent 6acdb05 commit 3d1a486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- run: corepack enable

- name: Install Symfony CLI
run: |
Expand All @@ -45,20 +46,13 @@ jobs:
ref: ${{ matrix.contao }}

- name: Install the dependencies
run: |
npm update
rm -rf cypress/webspace/vendor/contao/manager-bundle
composer install --working-dir=cypress/webspace --no-interaction --no-progress
run: yarn add contao-e2e-tests --dev

- name: Run the Cypress tests
id: cypress
run: |
symfony server:start --port=8765 --dir=cypress/webspace --daemon
npx cypress run --config-file cypress.config.js
symfony server:stop --dir=cypress/webspace
run: yarn contao-e2e-tests
env:
DATABASE_URL: mysql://root:root@127.0.0.1:3306/contao_test
TERM: xterm-256color

- name: Upload videos
uses: actions/upload-artifact@v2
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
!/.yarn/sdks
!/.yarn/versions

# Cypress
/cypress/

# PhpUnit
/.phpunit.result.cache
/phpunit.xml

0 comments on commit 3d1a486

Please sign in to comment.