A platform for community discussion. Free, open, simple.
DEV: Run independent CI setup steps in parallel (#44105)
Alan Guo Xiang Tan3dc68f74fc68
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex b7ea852a104..569e1a69e79 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -139,16 +139,17 @@ jobs:run: |ln -s /var/www/discourse/vendor/bundle vendor/bundle- - name: Setup gems- run: |- bundle config --local path vendor/bundle- bundle config --local deployment true- bundle config --local without development- bundle install --jobs $(($(nproc) - 1))- bundle clean+ - parallel:+ - name: Setup gems+ run: |+ bundle config --local path vendor/bundle+ bundle config --local deployment true+ bundle config --local without development+ bundle install --jobs $(($(nproc) - 1))+ bundle clean- - name: pnpm install- run: pnpm install --frozen-lockfile+ - name: pnpm install+ run: pnpm install --frozen-lockfile- name: Checkout official pluginsif: matrix.target == 'official-plugins' || matrix.target == 'plugins'@@ -198,6 +199,10 @@ jobs:bin/rake parallel:clonefi+ - name: Ember Build+ if: matrix.build_type == 'system' || matrix.build_type == 'frontend'+ run: script/assemble_ember_build.rb+- name: Check Annotationsif: matrix.build_type == 'backend' && (matrix.target == 'core' || matrix.target == 'plugins')env:@@ -270,10 +275,6 @@ jobs:if: matrix.build_type == 'backend' && matrix.target == 'core'run: LD_PRELOAD="$RUBY_ALLOCATOR" bin/turbo_rspec --use-runtime-info --format=progress- - name: Ember Build- if: matrix.build_type == 'system' || matrix.build_type == 'frontend'- run: script/assemble_ember_build.rb-- name: Prepare Chrome environment for QUnitif: matrix.build_type == 'frontend'run: |