CI: Add more checks to standalone docs pipeline (#46449)

* Add build frontend package step

* Reorder dependencies

* Add codespell and prettier checks
This commit is contained in:
Dimitris Sotirakis
2022-03-11 16:48:23 +02:00
committed by GitHub
parent cb0b089d32
commit 82b436afee
4 changed files with 87 additions and 14 deletions
+20 -1
View File
@@ -1,13 +1,14 @@
load(
'scripts/drone/steps/lib.star',
'build_image',
'initialize_step',
'download_grabpl_step',
'lint_frontend_step',
'codespell_step',
'shellcheck_step',
'test_frontend_step',
'build_storybook_step',
'build_frontend_docs_step',
'build_frontend_package_step',
'build_docs_website_step',
)
@@ -28,6 +29,9 @@ def docs_pipelines(edition, ver_mode, trigger):
# Insert remaining steps
steps.extend([
codespell_step(),
lint_docs(),
build_frontend_package_step(edition=edition, ver_mode=ver_mode),
build_frontend_docs_step(edition=edition),
build_docs_website_step(),
])
@@ -36,6 +40,21 @@ def docs_pipelines(edition, ver_mode, trigger):
name='{}-docs'.format(ver_mode), edition=edition, trigger=trigger, services=[], steps=steps,
)
def lint_docs():
return {
'name': 'lint-docs',
'image': build_image,
'depends_on': [
'initialize',
],
'environment': {
'NODE_OPTIONS': '--max_old_space_size=8192',
},
'commands': [
'yarn run prettier:checkDocs',
],
}
def trigger_docs():
return {
+1 -4
View File
@@ -458,12 +458,9 @@ def build_frontend_docs_step(edition):
'name': 'build-frontend-docs',
'image': build_image,
'depends_on': [
'initialize'
'build-frontend-packages'
],
'commands': [
'yarn packages:build',
'yarn packages:docsExtract',
'yarn packages:docsToMarkdown',
'./scripts/ci-reference-docs-lint.sh ci',
]
}