From 849a60eb77d64195f5ea8483b45714bc36feb755 Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 14 Nov 2025 19:22:44 +0100 Subject: [PATCH] test git command in CI --- .github/workflows/tests-e2e.yml | 2 ++ package.json | 1 + website/netlify.toml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index 4dd9eed596..6b7d7c4d14 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -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 diff --git a/package.json b/package.json index 0e9d63abf9..bb95f39dbf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/website/netlify.toml b/website/netlify.toml index c2e4762e96..855c86afd3 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -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"