test git command in CI

This commit is contained in:
sebastien 2025-11-14 19:22:44 +01:00
parent acc66c14b0
commit 849a60eb77
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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",

View File

@ -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"