diff --git a/.github/workflows/playwright-tests.yml b/.github/workflows/playwright-tests.yml new file mode 100644 index 00000000..4cc2e98b --- /dev/null +++ b/.github/workflows/playwright-tests.yml @@ -0,0 +1,60 @@ +name: Playwright browser tests + +on: + workflow_dispatch: + inputs: + send-success-notification: + description: 'Send a notification when the tests pass' + required: false + type: boolean + default: false + project-version: + description: 'Fill only when the tests should run on a stable release' + required: false + type: string + default: '' + push: + branches: + - master + - "[0-9]+.[0-9]+" + pull_request: ~ + +jobs: + playwright-commerce-setup1: + name: "PHP 8.3/Node 22/PostgreSQL 18.0/Varnish/Redis 7.2" + uses: ibexa/gh-workflows/.github/workflows/playwright-browser-tests.yml@ibx-11740-playwright + with: + project-edition: "commerce" + project-version: ${{ github.event.inputs.project-version }} + test-suite: "--project=commerce --grep @IbexaCommerce" + setup: "doc/docker/base-dev.yml:doc/docker/db-postgresql18.yml:doc/docker/varnish.yml:doc/docker/redis7.2.yml" + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} + php-image: "ghcr.io/ibexa/docker/php:8.3-node22" + timeout: 60 + secrets: inherit + + playwright-commerce-setup2: + name: "PHP 8.4/Node 22/MariaDB 11.4/Elastic 8/Valkey latest" + uses: ibexa/gh-workflows/.github/workflows/playwright-browser-tests.yml@ibx-11740-playwright + with: + project-edition: "commerce" + project-version: ${{ github.event.inputs.project-version }} + test-suite: "--project=commerce --grep @IbexaCommerce" + setup: "doc/docker/base-dev.yml:doc/docker/db-mariadb11.4.yml:doc/docker/elastic8.yml:doc/docker/valkey-latest.yml" + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} + php-image: "ghcr.io/ibexa/docker/php:8.4-node22" + timeout: 60 + secrets: inherit + + playwright-commerce-setup3: + name: "PHP 8.4/Node 22/MySQL 8.4/Solr 8/Redis latest" + uses: ibexa/gh-workflows/.github/workflows/playwright-browser-tests.yml@ibx-11740-playwright + with: + project-edition: "commerce" + project-version: ${{ github.event.inputs.project-version }} + test-suite: "--project=commerce --grep @IbexaCommerce" + setup: "doc/docker/base-dev.yml:doc/docker/db-mysql8.4.yml:doc/docker/solr8.yml:doc/docker/redis-latest.yml" + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} + php-image: "ghcr.io/ibexa/docker/php:8.4-node22" + timeout: 60 + secrets: inherit diff --git a/dependencies.json b/dependencies.json new file mode 100644 index 00000000..2b48be70 --- /dev/null +++ b/dependencies.json @@ -0,0 +1,23 @@ +{ + "recipesEndpoint": "", + "packages": [ + { + "requirement": "dev-playwright-ts-setup as 5.0.x-dev", + "repositoryUrl": "https://github.com/ibexa/admin-ui", + "package": "ibexa/admin-ui", + "shouldBeAddedAsVCS": true + }, + { + "requirement": "dev-playwright-ts-setup as 5.0.x-dev", + "repositoryUrl": "https://github.com/ibexa/activity-log", + "package": "ibexa/activity-log", + "shouldBeAddedAsVCS": true + }, + { + "requirement": "dev-playwright-ts-setup as 5.0.x-dev", + "repositoryUrl": "https://github.com/ibexa/version-comparison", + "package": "ibexa/version-comparison", + "shouldBeAddedAsVCS": true + } + ] +}