Skip to content

Commit 5f4b9f5

Browse files
Merge pull request #17395 from mauriciofauth/selenium-parallel
Run Selenium tests in parallel
2 parents 5adba00 + ed5b675 commit 5f4b9f5

1 file changed

Lines changed: 35 additions & 12 deletions

File tree

‎.github/workflows/test-selenium.yml‎

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Selenium tests
1+
name: "End-to-End tests"
22

33
on:
44
push:
@@ -8,14 +8,17 @@ on:
88
- master
99
- QA_**
1010

11+
env:
12+
php-version: "8.1"
13+
1114
jobs:
12-
test-selenium:
13-
name: Selenium tests on PHP ${{ matrix.php-version }} and ${{ matrix.os }}
15+
selenium:
16+
name: "Selenium"
1417
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[ci selenium skip]')"
15-
runs-on: ${{ matrix.os }}
18+
runs-on: "ubuntu-latest"
1619
services:
1720
database-server:
18-
image: ${{ matrix.db-server }}
21+
image: "mysql:5.7"
1922
env:
2023
MYSQL_ROOT_PASSWORD: testbench
2124
ports:
@@ -51,9 +54,29 @@ jobs:
5154
--restart on-failure
5255
strategy:
5356
matrix:
54-
php-version: ["7.2"]
55-
os: [ubuntu-latest]
56-
db-server: ["mysql:5.7"]
57+
test-name:
58+
- "ChangePassword"
59+
- "CreateDropDatabase"
60+
- "CreateRemoveUser"
61+
- "Database/Events"
62+
- "Database/Operations"
63+
- "Database/Procedures"
64+
- "Database/QueryByExample"
65+
- "Database/Structure"
66+
- "Database/Triggers"
67+
- "Export"
68+
- "Import"
69+
- "Login"
70+
- "Normalization"
71+
- "ServerSettings"
72+
- "SqlQuery"
73+
- "Table/Browse"
74+
- "Table/Create"
75+
- "Table/Insert"
76+
- "Table/Operations"
77+
- "Table/Structure"
78+
- "Tracking"
79+
- "Xss"
5780
steps:
5881
- name: Checkout code
5982
uses: actions/checkout@v2
@@ -67,10 +90,10 @@ jobs:
6790
- name: Generate mo files
6891
run: ./scripts/generate-mo --quiet
6992

70-
- name: Set up PHP ${{ matrix.php-version }}
93+
- name: Set up PHP ${{ env.php-version }}
7194
uses: shivammathur/setup-php@v2
7295
with:
73-
php-version: ${{ matrix.php-version }}
96+
php-version: ${{ env.php-version }}
7497
extensions: mbstring, iconv, mysqli, zip, gd, bz2
7598

7699
- name: Install Composer dependencies
@@ -104,7 +127,7 @@ jobs:
104127
- name: Start server
105128
env:
106129
CI_MODE: selenium
107-
FPM_PATH: php-fpm7.2
130+
FPM_PATH: php-fpm${{ env.php-version }}
108131
SKIP_STANDALONE: 1
109132
run: |
110133
./test/start-local-server
@@ -122,7 +145,7 @@ jobs:
122145
TESTSUITE_DATABASE_PREFIX: "selenium"
123146
TESTSUITE_SELENIUM_HOST: "127.0.0.1"
124147
TESTSUITE_SELENIUM_PORT: "4444"
125-
run: ./vendor/bin/phpunit --testsuite selenium --verbose --debug --no-coverage --stop-on-skipped
148+
run: ./vendor/bin/phpunit --testsuite selenium --verbose --debug --no-coverage --stop-on-skipped test/selenium/${{ matrix.test-name }}Test.php
126149

127150
- name: Output logs and stop server
128151
env:

0 commit comments

Comments
 (0)