Skip to content

Commit a2c9632

Browse files
committed
remove comments, update matrix
1 parent e5f53b4 commit a2c9632

File tree

3 files changed

+10
-141
lines changed

3 files changed

+10
-141
lines changed

.github/workflows/playwright.yml

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
fail-fast: false # Ensures the matrix doesn't stop if one job fails
1313
matrix:
1414
include:
15-
- php_version: 5.6
16-
wp_version: null
15+
- php_version: 7.0.0
16+
wp_version: 6.4
1717

1818
- php_version: 7.3
1919
wp_version: null
@@ -71,6 +71,13 @@ jobs:
7171
npm install -g @wordpress/env
7272
- name: Start wp-env
7373
run: wp-env start
74+
- name: Get PHP and WordPress versions
75+
run: |
76+
CONTAINER_NAME=$(docker ps --filter "ancestor=wordpress" --format "{{.Names}}")
77+
echo "PHP Version:"
78+
docker exec $CONTAINER_NAME php -v
79+
echo "WordPress Version:"
80+
docker exec $CONTAINER_NAME wp core version
7481
- name: Run playwright tests
7582
env:
7683
WP_BASE_URL: http://localhost:8889
@@ -79,11 +86,6 @@ jobs:
7986
WP_PASSWORD: password
8087
STACKABLE_SLUG: Stackable/plugin
8188
run: npm run test
82-
- uses: markpatterson27/markdown-to-output@v1
83-
id: mto
84-
if: ${{ !cancelled() }}
85-
with:
86-
filepath: ./playwright-errors/errors.md
8789
- uses: actions/upload-artifact@v4
8890
if: ${{ !cancelled() }}
8991
id: artifact-upload-step
@@ -92,24 +94,3 @@ jobs:
9294
path: playwright-report/
9395
overwrite: true
9496
retention-days: 30
95-
- name: Find Comment
96-
uses: peter-evans/find-comment@v3
97-
if: ${{ !cancelled() }}
98-
id: fc
99-
with:
100-
issue-number: ${{ github.event.pull_request.number }}
101-
comment-author: 'github-actions[bot]'
102-
body-includes: Playwright Report Artifact for PHP ${{ matrix.php_version }} and WP ${{ env.WP_VERSION }}
103-
- name: Create or update comment
104-
uses: peter-evans/create-or-update-comment@v4
105-
if: ${{ !cancelled() }}
106-
with:
107-
comment-id: ${{ steps.fc.outputs.comment-id }}
108-
issue-number: ${{ github.event.pull_request.number }}
109-
body: |
110-
## Playwright Report Artifact for PHP ${{ matrix.php_version }} and WP ${{ env.WP_VERSION }}
111-
| file | commit |
112-
| ---- | ------ |
113-
| [playwright-report-${{ env.VERSION_SUFFIX }}.zip](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }}) | ${{ github.sha }} |
114-
${{ steps.mto.outputs.body }}
115-
edit-mode: replace

e2e/config/reporter.ts

Lines changed: 0 additions & 110 deletions
This file was deleted.

e2e/playwright.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ export default defineConfig( {
3232
// workers: process.env.CI ? 1 : undefined,
3333
workers: 1,
3434
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
35-
reporter: process.env.CI
36-
? [ [ 'list' ], [ 'html', { outputFolder: '../playwright-report', open: 'never' } ], [ './config/reporter.ts' ] ]
37-
: [ [ 'list' ], [ 'html', { outputFolder: '../playwright-report', open: 'never' } ] ],
35+
reporter: [ [ 'list' ], [ 'html', { outputFolder: '../playwright-report', open: 'never' } ] ],
3836
reportSlowTests: null,
3937
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
4038
use: {

0 commit comments

Comments
 (0)