DEV: Write ember exam execution file for plugin qunit in CI (#23877)

This commit is contained in:
David Taylor 2023-10-10 16:29:28 +01:00 committed by GitHub
parent 6d7c589740
commit 3f8a85ed49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -209,9 +209,15 @@ jobs:
- name: Plugin QUnit
if: matrix.build_type == 'frontend' && matrix.target == 'plugins'
run: QUNIT_PARALLEL=3 bin/rake plugin:qunit['*','1200000']
run: QUNIT_WRITE_EXECUTION_FILE=1 QUNIT_PARALLEL=3 bin/rake plugin:qunit['*','1200000']
timeout-minutes: 30
- uses: actions/upload-artifact@v3
if: matrix.build_type == 'frontend' && matrix.target == 'plugins'
with:
name: ember-exam-execution-plugins-frontend-${{(matrix.embroider == '1') && 'embroider' || 'classic'}}
path: ./app/assets/javascripts/discourse/test-execution-*.json
- name: Ember Build for System Tests
if: matrix.build_type == 'system'
run: bin/ember-cli --build

View File

@ -114,6 +114,7 @@ task "qunit:test", %i[timeout qunit_path filter] do |_, args|
cmd += ["--load-balance", "--parallel", parallel]
end
cmd += ["--filter", filter] if filter
cmd << "--write-execution-file" if ENV["QUNIT_WRITE_EXECUTION_FILE"]
end
system(*cmd, chdir: "#{Rails.root}/app/assets/javascripts/discourse")