mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-25 17:22:50 +00:00
test git command in CI
This commit is contained in:
parent
acc66c14b0
commit
849a60eb77
|
|
@ -49,6 +49,8 @@ jobs:
|
|||
cache: yarn
|
||||
- name: Installation
|
||||
run: yarn || yarn || yarn
|
||||
- name: Test Git
|
||||
run: yarn test:git
|
||||
- name: Generate test-website project against main branch
|
||||
run: yarn test:build:website -s
|
||||
- name: Install test-website project with Yarn v1
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
"admin/new.docusaurus.io"
|
||||
],
|
||||
"scripts": {
|
||||
"test:git": "git --no-pager -c log.showSignature=false log --format=t:%ct,a:%an --name-status",
|
||||
"start": "yarn build:packages && yarn start:website",
|
||||
"start:website": "yarn workspace website start",
|
||||
"start:website:profile": "DOCUSAURUS_BUNDLER_CPU_PROFILE=true DOCUSAURUS_RSPACK_TRACE=true yarn workspace website start",
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
command = "yarn --cwd .. build:packages && yarn netlify:build:branchDeploy"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "yarn --cwd .. build:packages && yarn netlify:build:deployPreview"
|
||||
command = "yarn --cwd .. test:git && yarn --cwd .. build:packages && yarn netlify:build:deployPreview"
|
||||
|
||||
[[plugins]]
|
||||
package = "netlify-plugin-cache"
|
||||
|
|
|
|||
Loading…
Reference in New Issue