diff --git a/.github/workflows/plugin-tests.yml b/.github/workflows/plugin-tests.yml index 51d26303..970a3f6f 100644 --- a/.github/workflows/plugin-tests.yml +++ b/.github/workflows/plugin-tests.yml @@ -112,7 +112,7 @@ jobs: with: path: tmp/app-cache key: >- - ${{ hashFiles('.github/workflows/tests.yml') }}- + ${{ hashFiles('.github/workflows/plugin-tests.yml') }}- ${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}- - name: Restore database from cache diff --git a/plugin.rb b/plugin.rb index e20c056d..3c0a840a 100644 --- a/plugin.rb +++ b/plugin.rb @@ -22,6 +22,8 @@ if Rails.env.production? } end +puts "BEFORE ADD ASSET PATHS" + if Rails.env.test? config = Rails.application.config plugin_asset_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets" @@ -252,6 +254,7 @@ after_initialize do ::InvitesController.prepend InvitesControllerCustomWizard ::UsersController.prepend CustomWizardUsersController ::Guardian.prepend CustomWizardGuardian + puts "PREPENDING CSP EXTENSION" ::ContentSecurityPolicy::Extension.singleton_class.prepend CustomWizardContentSecurityPolicyExtension full_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets/stylesheets/wizard/wizard_custom.scss"