Closed karreiro closed 1 year ago
@charlespwd What do you think about that solution?
Do we not have a command to load the updated docs? Can we run it in theme-check-action before linting?
If not, then we can add a new flag that does this compound work, but it feels unnecessary.
Good catch! We have a rake task, but I don't think we currently can execute it from the theme-check-action. Still, running the following script would do the job:
require 'theme_check'
ThemeCheck::ShopifyLiquid::SourceManager.download
Alternatively, we could expose the download_theme_liquid_docs
rake task, to avoid changes in the SourceManager
breaking the theme-check-action.
There I go mixing shopify
and theme-check
. Forgot that theme-check doesn't take a command. Only a root argument.
A new flag seems perfect. I think the behaviour should be atomic though (instead of update then check).
Is your feature request related to a problem? Please describe.
When Theme Check is released, the most updated version of
Shopify/theme-liquid-docs
is embedded. Also, when some new filter is released, local Theme Check instances get auto upgraded asynchronously (so documentation is always updated on developers machines).However, at CI environments, Theme Check uses the embedded documentation from the latest release, which makes the build of some CI-users fail.
Describe the solution you'd like
--latest
,--latest-sources
,--update-docs
,--ci
) at Theme Check to synchronously download the latest documentationShopify/theme-check-action
to use that flagDescribe alternatives you've considered