|
| 1 | +name: Playwright browser tests |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + send-success-notification: |
| 7 | + description: 'Send a notification when the tests pass' |
| 8 | + required: false |
| 9 | + type: boolean |
| 10 | + default: false |
| 11 | + project-version: |
| 12 | + description: 'Fill only when the tests should run on a stable release' |
| 13 | + required: false |
| 14 | + type: string |
| 15 | + default: '' |
| 16 | + push: |
| 17 | + branches: |
| 18 | + - master |
| 19 | + - "[0-9]+.[0-9]+" |
| 20 | + pull_request: ~ |
| 21 | + |
| 22 | +jobs: |
| 23 | + playwright-commerce-setup1: |
| 24 | + name: "PHP 8.3/Node 22/PostgreSQL 18.0/Varnish/Redis 7.2" |
| 25 | + uses: ibexa/gh-workflows/.github/workflows/playwright-browser-tests.yml@ibx-11740-playwright |
| 26 | + with: |
| 27 | + project-edition: "commerce" |
| 28 | + project-version: ${{ github.event.inputs.project-version }} |
| 29 | + test-suite: "--project=commerce" |
| 30 | + setup: "doc/docker/base-dev.yml:doc/docker/db-postgresql18.yml:doc/docker/varnish.yml:doc/docker/redis7.2.yml" |
| 31 | + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} |
| 32 | + php-image: "ghcr.io/ibexa/docker/php:8.3-node22" |
| 33 | + timeout: 60 |
| 34 | + secrets: inherit |
| 35 | + |
| 36 | + playwright-commerce-setup2: |
| 37 | + name: "PHP 8.4/Node 22/MariaDB 11.4/Elastic 8/Valkey latest" |
| 38 | + uses: ibexa/gh-workflows/.github/workflows/playwright-browser-tests.yml@ibx-11740-playwright |
| 39 | + with: |
| 40 | + project-edition: "commerce" |
| 41 | + project-version: ${{ github.event.inputs.project-version }} |
| 42 | + test-suite: "--project=commerce" |
| 43 | + setup: "doc/docker/base-dev.yml:doc/docker/db-mariadb11.4.yml:doc/docker/elastic8.yml:doc/docker/valkey-latest.yml" |
| 44 | + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} |
| 45 | + php-image: "ghcr.io/ibexa/docker/php:8.4-node22" |
| 46 | + timeout: 60 |
| 47 | + secrets: inherit |
| 48 | + |
| 49 | + playwright-commerce-setup3: |
| 50 | + name: "PHP 8.4/Node 22/MySQL 8.4/Solr 8/Redis latest" |
| 51 | + uses: ibexa/gh-workflows/.github/workflows/playwright-browser-tests.yml@ibx-11740-playwright |
| 52 | + with: |
| 53 | + project-edition: "commerce" |
| 54 | + project-version: ${{ github.event.inputs.project-version }} |
| 55 | + test-suite: "--project=commerce" |
| 56 | + setup: "doc/docker/base-dev.yml:doc/docker/db-mysql8.4.yml:doc/docker/solr8.yml:doc/docker/redis-latest.yml" |
| 57 | + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} |
| 58 | + php-image: "ghcr.io/ibexa/docker/php:8.4-node22" |
| 59 | + timeout: 60 |
| 60 | + secrets: inherit |
0 commit comments