mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
DEV: Split chat system tests into separate GitHub actions job (#24096)
The 'plugins system' job is currently our longest-running job. Therefore, splitting it up will reduce the overall workflow runtime.
This commit is contained in:
parent
c3c557c2df
commit
a546dcb0cc
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@ -48,6 +48,10 @@ jobs:
|
|||||||
target: plugins
|
target: plugins
|
||||||
- build_type: frontend
|
- build_type: frontend
|
||||||
target: core # Handled by core_frontend_tests job (below)
|
target: core # Handled by core_frontend_tests job (below)
|
||||||
|
include:
|
||||||
|
- build_type: system
|
||||||
|
target: chat
|
||||||
|
ruby: "3.2"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set working directory owner
|
- name: Set working directory owner
|
||||||
@ -230,7 +234,15 @@ jobs:
|
|||||||
|
|
||||||
- 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 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/*/spec/system
|
run: |
|
||||||
|
GLOBIGNORE="plugins/chat/*";
|
||||||
|
LOAD_PLUGINS=1 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/*/spec/system
|
||||||
|
shell: bash
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
- name: Chat System Tests
|
||||||
|
if: matrix.build_type == 'system' && matrix.target == 'chat'
|
||||||
|
run: LOAD_PLUGINS=1 RAILS_ENABLE_TEST_LOG=1 RAILS_TEST_LOG_LEVEL=error PARALLEL_TEST_PROCESSORS=4 bin/turbo_rspec --use-runtime-info --profile=50 --verbose --format documentation plugins/chat/spec/system
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
- name: Upload failed system test screenshots
|
- name: Upload failed system test screenshots
|
||||||
|
Loading…
x
Reference in New Issue
Block a user