UI tests - Add matrice of 1.7.8.0 ~ 1.7.8.10 to 1.7.8.11 (minor) on PHP 7.2 ~ 7.4 #303
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: UI Tests | |
on: | |
## Check each PR | |
push: | |
pull_request: | |
## Manual execution on branch | |
workflow_dispatch: | |
## Nightly | |
### Needs secrets | |
#### GC_PROJECT_ID | |
#### GC_SERVICE_KEY | |
#### NIGHTLY_TOKEN | |
schedule: | |
- cron: '0 0 * * *' | |
env: | |
CAMPAIGN: 'autoupgrade' | |
jobs: | |
ui_test: | |
name: UI Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# 1.7.8 ~ minor PHP 7.2 ~ 7.4 | |
- PS_VERSION_START: 1.7.8.0 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.0 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.0 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.1 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.1 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.1 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.2 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.2 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.2 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.3 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.4 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.4 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.4 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.5 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.5 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.5 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.6 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.6 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.6 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.7 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.7 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.7 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.8 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.8 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.8 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.9 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.9 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.9 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 1.7.8.10 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 1.7.8.10 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 1.7.8.10 | |
PS_VERSION_END: 1.7.8.11 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
# 1.7.8 ~ major PHP 7.2 ~ 7.4 | |
- PS_VERSION_START: 1.7.8.11 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: major | |
PHP_VERSION: 7.4 | |
# 8.0.0 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.0.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.0.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.0.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.0.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.0.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.0.1 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.0.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.0.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.0.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.0.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.0.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.0.2 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.0.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.0.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.0.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.0.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.0.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.0.3 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.0.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.0.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.0.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.0.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.0.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.0.4 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.0.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.0.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.0.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.0.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.0.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.0.5 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.0.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.0.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.0.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.0.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.0.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.0 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.0 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.1 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.1 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.2 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.2 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.3 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.3 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.4 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.4 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.5 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.5 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
# 8.1.6 ~ minor PHP 7.2 ~ 8.1 | |
- PS_VERSION_START: 8.1.6 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.2 | |
- PS_VERSION_START: 8.1.6 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.3 | |
- PS_VERSION_START: 8.1.6 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 7.4 | |
- PS_VERSION_START: 8.1.6 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: '8.0' | |
- PS_VERSION_START: 8.1.6 | |
PS_VERSION_END: 8.1.7 | |
UPGRADE_CHANNEL: minor | |
PHP_VERSION: 8.1 | |
env: | |
PS_DOCKER: ${{ matrix.PS_VERSION_START }}-${{ matrix.PHP_VERSION }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Start containers | |
working-directory: tests/UI/ | |
env: | |
PS_VERSION: ${{ env.PS_DOCKER }} | |
run: | | |
docker compose -f "docker-compose.yml" up -d --build | |
bash -c 'while [[ "$(curl -L -s -o /dev/null -w %{http_code} http://localhost/en/)" != "200" ]]; do sleep 5; done' | |
- name: Composer install | |
run: composer install | |
- name: Install module autoupgrade | |
working-directory: tests/UI/ | |
run: | | |
docker exec -t prestashop php -v bin/console prestashop:module install autoupgrade | |
- name: Upgrade | |
run: | | |
docker exec -t prestashop php modules/autoupgrade/cli-upgrade.php --dir=admin-dev --channel=${{ matrix.UPGRADE_CHANNEL }} | |
docker exec -t prestashop chmod 777 -R /var/www/html/var/cache/dev | |
- name: Install dependencies | |
working-directory: tests/UI/ | |
run: npm ci | |
- name: Install Playwright Browsers | |
working-directory: tests/UI/ | |
run: npx playwright install chromium --with-deps | |
- name: Run Sanity tests | |
working-directory: tests/UI/ | |
env: | |
PS_VERSION: ${{ matrix.PS_VERSION_END }} | |
DB_USER: prestashop | |
DB_PASSWD: prestashop | |
DB_NAME: prestashop | |
DB_PREFIX: ps_ | |
run: npx playwright test | |
- name: Export Docker errors | |
working-directory: tests/UI/ | |
if: always() | |
run: docker compose logs --no-color >& docker-compose.log | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report-${{ matrix.PS_VERSION_START }}-${{ matrix.PS_VERSION_END }}-${{ matrix.PHP_VERSION }} | |
path: | | |
tests/UI/reports/ | |
tests/UI/report.json | |
tests/UI/docker-compose.log | |
retention-days: 30 |