DEV: Fix the order of operations in themes-frontend (#27319)

Previously "themes frontend" CI job would:

1. pull compatible versions of themes that happened to be in the base image
2. clone all official themes (overriding the compatible versions from 1.)
3. run tests
This commit is contained in:
Jarek Radosz 2024-06-04 15:16:56 +02:00 committed by GitHub
parent 5558028f8c
commit 5e5234bb69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -136,12 +136,8 @@ jobs:
key: ${{ runner.os }}-plugin-gems-${{matrix.ruby}}-${{ hashFiles('plugins/*/plugin.rb') }}
- name: Checkout official themes
if: matrix.target == 'themes' && matrix.build_type == 'system'
run: bin/rake themes:clone_all_official
- name: Pull compatible versions of themes
if: matrix.target == 'themes'
run: bin/rake themes:pull_compatible_all
run: bin/rake themes:clone_all_official themes:pull_compatible_all
- name: Add hosts to /etc/hosts, otherwise Chromium cannot reach minio
if: matrix.build_type == 'system' && matrix.target == 'core'

View File

@ -251,7 +251,7 @@ end
# Note that this should only be used in CI where it is safe to mutate the database without rolling back since running
# the themes QUnit tests requires the themes to be installed in the database.
desc "Runs qunit tests for all official themes"
task "themes:qunit_all_official" => ["themes:clone_all_official", :environment] do |task, args|
task "themes:qunit_all_official" => :environment do |task, args|
theme_ids_with_qunit_tests = []
ThemeMetadata::OFFICIAL_THEMES.each do |theme_name|