From e717529d8098b685a06748e41581e1f18a5afaf4 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 26 Jan 2023 13:26:02 +0000 Subject: [PATCH] DEV: Enable parallel system specs in GitHub actions CI (#19584) --- .github/workflows/tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9374c85d708..69a8517b748 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,7 +29,7 @@ jobs: RAILS_ENV: test PGUSER: 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 strategy: @@ -173,13 +173,17 @@ jobs: if: matrix.build_type == 'system' 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 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 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 uses: actions/upload-artifact@v3