mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 12:26:04 +08:00
DEV: Skip I18n in plugins until they can be updated
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -137,7 +137,7 @@ jobs:
|
|||||||
if: env.BUILD_TYPE == 'LINT'
|
if: env.BUILD_TYPE == 'LINT'
|
||||||
run: |
|
run: |
|
||||||
yarn eslint app/assets/javascripts test/javascripts
|
yarn eslint app/assets/javascripts test/javascripts
|
||||||
yarn eslint --ext .es6 app/assets/javascripts test/javascripts plugins
|
yarn eslint --global I18n --ext .es6 plugins
|
||||||
|
|
||||||
- name: Prettier
|
- name: Prettier
|
||||||
if: env.BUILD_TYPE == 'LINT'
|
if: env.BUILD_TYPE == 'LINT'
|
||||||
|
@ -66,7 +66,7 @@ task 'docker:test' do
|
|||||||
|
|
||||||
if ENV["SINGLE_PLUGIN"]
|
if ENV["SINGLE_PLUGIN"]
|
||||||
@good &&= run_or_fail("bundle exec rubocop --parallel plugins/#{ENV["SINGLE_PLUGIN"]}")
|
@good &&= run_or_fail("bundle exec rubocop --parallel plugins/#{ENV["SINGLE_PLUGIN"]}")
|
||||||
@good &&= run_or_fail("yarn eslint --ext .es6 plugins/#{ENV['SINGLE_PLUGIN']}")
|
@good &&= run_or_fail("yarn eslint --global I18n --ext .es6 plugins/#{ENV['SINGLE_PLUGIN']}")
|
||||||
|
|
||||||
puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
|
puts "Listing prettier offenses in #{ENV['SINGLE_PLUGIN']}:"
|
||||||
@good &&= run_or_fail_prettier("plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss", "plugins/#{ENV['SINGLE_PLUGIN']}/**/*.es6")
|
@good &&= run_or_fail_prettier("plugins/#{ENV['SINGLE_PLUGIN']}/**/*.scss", "plugins/#{ENV['SINGLE_PLUGIN']}/**/*.es6")
|
||||||
@ -74,7 +74,9 @@ task 'docker:test' do
|
|||||||
@good &&= run_or_fail("bundle exec rake plugin:update_all") unless ENV["SKIP_PLUGINS"]
|
@good &&= run_or_fail("bundle exec rake plugin:update_all") unless ENV["SKIP_PLUGINS"]
|
||||||
@good &&= run_or_fail("bundle exec rubocop --parallel") unless ENV["SKIP_CORE"]
|
@good &&= run_or_fail("bundle exec rubocop --parallel") unless ENV["SKIP_CORE"]
|
||||||
@good &&= run_or_fail("yarn eslint app/assets/javascripts test/javascripts") unless ENV["SKIP_CORE"]
|
@good &&= run_or_fail("yarn eslint app/assets/javascripts test/javascripts") unless ENV["SKIP_CORE"]
|
||||||
@good &&= run_or_fail("yarn eslint --ext .es6 app/assets/javascripts test/javascripts plugins") unless ENV["SKIP_PLUGINS"]
|
|
||||||
|
# TODO: remove --global I18n once plugins can be updated
|
||||||
|
@good &&= run_or_fail("yarn eslint --global I18n --ext .es6 plugins") unless ENV["SKIP_PLUGINS"]
|
||||||
|
|
||||||
unless ENV["SKIP_CORE"]
|
unless ENV["SKIP_CORE"]
|
||||||
puts "Listing prettier offenses in core:"
|
puts "Listing prettier offenses in core:"
|
||||||
|
Reference in New Issue
Block a user