From c74caba38dc258fb28b7aa1ab84ea6ec58814dea Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 5 Sep 2024 08:20:55 +0200 Subject: [PATCH] chore(test runner): document that --only-changed on CI needs history Closes https://github.com/microsoft/playwright/issues/32452 --only-changed needs more than a single commit locally to work properly. `fetch-depth: 0` does that, see https://github.com/actions/checkout?tab=readme-ov-file#fetch-all-history-for-all-tags-and-branches. Signed-off-by: Simon Knott --- docs/src/ci.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/ci.md b/docs/src/ci.md index 7a08a00b4a..fcb9366b8b 100644 --- a/docs/src/ci.md +++ b/docs/src/ci.md @@ -432,6 +432,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: actions/setup-node@v4 with: node-version: 18 @@ -1044,4 +1046,4 @@ xvfb-run mvn test ``` ```bash csharp xvfb-run dotnet test -``` \ No newline at end of file +```