diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-02-16 23:34:03 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2022-02-17 01:08:22 +0300 |
commit | ed5b675214431a383288074d87bb8c7bdb1e3df2 (patch) | |
tree | 2e4141b6401498dd571f1a7b7c445b5154190ca9 /.github/workflows | |
parent | 5adba00ec62a03fc7514c6f95eddb16bfe3a0469 (diff) |
Run Selenium tests in parallel
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/test-selenium.yml | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/.github/workflows/test-selenium.yml b/.github/workflows/test-selenium.yml index 014b675a30..e82492f892 100644 --- a/.github/workflows/test-selenium.yml +++ b/.github/workflows/test-selenium.yml @@ -1,4 +1,4 @@ -name: Run Selenium tests +name: "End-to-End tests" on: push: @@ -8,14 +8,17 @@ on: - master - QA_** +env: + php-version: "8.1" + jobs: - test-selenium: - name: Selenium tests on PHP ${{ matrix.php-version }} and ${{ matrix.os }} + selenium: + name: "Selenium" if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[ci selenium skip]')" - runs-on: ${{ matrix.os }} + runs-on: "ubuntu-latest" services: database-server: - image: ${{ matrix.db-server }} + image: "mysql:5.7" env: MYSQL_ROOT_PASSWORD: testbench ports: @@ -51,9 +54,29 @@ jobs: --restart on-failure strategy: matrix: - php-version: ["7.2"] - os: [ubuntu-latest] - db-server: ["mysql:5.7"] + test-name: + - "ChangePassword" + - "CreateDropDatabase" + - "CreateRemoveUser" + - "Database/Events" + - "Database/Operations" + - "Database/Procedures" + - "Database/QueryByExample" + - "Database/Structure" + - "Database/Triggers" + - "Export" + - "Import" + - "Login" + - "Normalization" + - "ServerSettings" + - "SqlQuery" + - "Table/Browse" + - "Table/Create" + - "Table/Insert" + - "Table/Operations" + - "Table/Structure" + - "Tracking" + - "Xss" steps: - name: Checkout code uses: actions/checkout@v2 @@ -67,10 +90,10 @@ jobs: - name: Generate mo files run: ./scripts/generate-mo --quiet - - name: Set up PHP ${{ matrix.php-version }} + - name: Set up PHP ${{ env.php-version }} uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php-version }} + php-version: ${{ env.php-version }} extensions: mbstring, iconv, mysqli, zip, gd, bz2 - name: Install Composer dependencies @@ -104,7 +127,7 @@ jobs: - name: Start server env: CI_MODE: selenium - FPM_PATH: php-fpm7.2 + FPM_PATH: php-fpm${{ env.php-version }} SKIP_STANDALONE: 1 run: | ./test/start-local-server @@ -122,7 +145,7 @@ jobs: TESTSUITE_DATABASE_PREFIX: "selenium" TESTSUITE_SELENIUM_HOST: "127.0.0.1" TESTSUITE_SELENIUM_PORT: "4444" - run: ./vendor/bin/phpunit --testsuite selenium --verbose --debug --no-coverage --stop-on-skipped + run: ./vendor/bin/phpunit --testsuite selenium --verbose --debug --no-coverage --stop-on-skipped test/selenium/${{ matrix.test-name }}Test.php - name: Output logs and stop server env: |