mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 03:45:43 +08:00
DEV: Enable parallel system specs in GitHub actions CI (#19584)
This commit is contained in:
parent
f8863b0f98
commit
e717529d80
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
RAILS_ENV: test
|
RAILS_ENV: test
|
||||||
PGUSER: discourse
|
PGUSER: discourse
|
||||||
PGPASSWORD: discourse
|
PGPASSWORD: discourse
|
||||||
USES_PARALLEL_DATABASES: ${{ matrix.build_type == 'backend' }}
|
USES_PARALLEL_DATABASES: ${{ matrix.build_type == 'backend' || matrix.build_type == 'system' }}
|
||||||
CAPBYARA_DEFAULT_MAX_WAIT_TIME: 4
|
CAPBYARA_DEFAULT_MAX_WAIT_TIME: 4
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@ -173,13 +173,17 @@ jobs:
|
|||||||
if: matrix.build_type == 'system'
|
if: matrix.build_type == 'system'
|
||||||
run: bin/ember-cli --build
|
run: bin/ember-cli --build
|
||||||
|
|
||||||
|
- name: Setup Webdriver
|
||||||
|
if: matrix.build_type == 'system'
|
||||||
|
run: bin/rails runner "require 'webdrivers'; Webdrivers::Chromedriver.update"
|
||||||
|
|
||||||
- name: Core System Tests
|
- name: Core System Tests
|
||||||
if: matrix.build_type == 'system' && matrix.target == 'core'
|
if: matrix.build_type == 'system' && matrix.target == 'core'
|
||||||
run: bin/rspec spec/system --format documentation --profile
|
run: PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --verbose spec/system
|
||||||
|
|
||||||
- name: Plugin System Tests
|
- name: Plugin System Tests
|
||||||
if: matrix.build_type == 'system' && matrix.target == 'plugins'
|
if: matrix.build_type == 'system' && matrix.target == 'plugins'
|
||||||
run: LOAD_PLUGINS=1 bin/rspec plugins/*/spec/system --format documentation --profile
|
run: LOAD_PLUGINS=1 PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --verbose plugins/*/spec/system
|
||||||
|
|
||||||
- name: Upload failed system test screenshots
|
- name: Upload failed system test screenshots
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user