-
Notifications
You must be signed in to change notification settings - Fork 1
IBX-11740: Added playwright-tests.yml #1833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
pawlakadrian
wants to merge
18
commits into
5.0
Choose a base branch
from
ibx-11740-playwright
base: 5.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
526599c
IBX-11740: Added playwright-tests.yml
pawlakadrian b616986
ci: trigger
pawlakadrian ff955fb
ci: trigger
pawlakadrian 891e724
ci: trigger
pawlakadrian da78cfb
ci: trigger
pawlakadrian 84c49e7
ci: trigger
pawlakadrian 45cd1cd
IBX-11740: Added dependencies.json
pawlakadrian 0644e12
ci: trigger
pawlakadrian f23e200
ci: trigger
pawlakadrian 654cc60
ci: trigger
pawlakadrian 60ab5c4
ci: trigger
pawlakadrian a52a997
ci: trigger
pawlakadrian 85992a2
IBX-11740: Refactored workflows
pawlakadrian 5afd3b9
ci: trigger
pawlakadrian 7a9c042
ci: trigger
pawlakadrian b6be791
ci: trigger
pawlakadrian e156761
ci: trigger
pawlakadrian 128201c
IBX-11740: Adjustments for new PW configuration
pawlakadrian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| 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: ~ | ||
|
|
||
| # Edition mode: no test-package input, so the run executes the Playwright tests of | ||
| # every package that ships them, for the commerce edition. Edition/tag filtering is | ||
| # handled by cohesivo-playwright's config (via APP_EDITION) — do not pass test-suite | ||
| # with --project/--grep here, it would only duplicate that convention. | ||
| 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: ${{ inputs.project-version }} | ||
| # TODO: verify on the first run that localhost:8080 is served by Varnish | ||
| # (check X-Varnish/Via response headers). Playwright runs on the runner host — | ||
| # if Varnish publishes a different host port, set app-url to it explicitly. | ||
| 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_name != 'workflow_dispatch' || inputs.send-success-notification }} | ||
| 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: ${{ inputs.project-version }} | ||
| 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_name != 'workflow_dispatch' || inputs.send-success-notification }} | ||
| 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: ${{ inputs.project-version }} | ||
| 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_name != 'workflow_dispatch' || inputs.send-success-notification }} | ||
| php-image: "ghcr.io/ibexa/docker/php:8.4-node22" | ||
| timeout: 60 | ||
| secrets: inherit | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "recipesEndpoint": "", | ||
| "packages": [ | ||
| { | ||
| "requirement": "dev-ibx-11739 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/version-comparison", | ||
| "package": "ibexa/version-comparison", | ||
| "shouldBeAddedAsVCS": true | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed