From eed4f8320e950090733c02991e067169ef7740d3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 10 Apr 2026 00:15:18 +0200 Subject: [PATCH] tools: add a check for clean git tree after tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Antoine du Hamel PR-URL: https://github.com/nodejs/node/pull/62661 Refs: https://github.com/nodejs/node/issues/62646 Reviewed-By: Juan José Arboleda Reviewed-By: Aviv Keller Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Filip Skokan --- .github/workflows/test-linux.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 6d49f08991cf86..8d878c26f74888 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -77,9 +77,14 @@ jobs: - name: Environment Information run: npx envinfo - name: Build - run: make -C node build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --v8-enable-temporal-support" + working-directory: node + run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --v8-enable-temporal-support" - name: Test - run: make -C node test-ci -j1 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9" + working-directory: node + run: make test-ci -j1 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9" + - name: Ensure running tests did not cause any change in the tree + working-directory: node + run: git add -A && git diff --name-only --exit-code --staged - name: Re-run test in a folder whose name contains unusual chars run: | mv node "$DIR"