Skip to content

Commit

Permalink
try fixing E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Jul 9, 2024
1 parent 882794d commit f1e1aa0
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,42 @@ jobs:
strategy:
matrix:
core:
- {name: 'WP latest', version: 'latest', continue: false}
- {name: 'WP minimum', version: 'WordPress/WordPress#6.4', continue: false}
- {name: 'WP trunk', version: 'WordPress/WordPress#master', continue: true}
- {name: 'WP latest', version: 'latest'}
- {name: 'WP minimum', version: 'WordPress/WordPress#6.4'}
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm ci

- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer:v2

- name: Composer (optional)
run: composer install
continue-on-error: true

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Build (optional)
run: npm ci && npm run build
continue-on-error: true

- name: Set the core version
run: ./tests/bin/set-core-version.js ${{ matrix.core.version }}

- name: Set up WP environment
run: npm run env:start

- name: Test
run: npm run cypress:run
continue-on-error: ${{ matrix.core.continue }}

- name: Make artifacts available
uses: actions/upload-artifact@v4
if: failure()
Expand Down

0 comments on commit f1e1aa0

Please sign in to comment.