◐ Shell
clean mode source ↗

tools: add a check for clean git tree after tests · nodejs/node@a12dc44

Original file line numberDiff line numberDiff line change

@@ -70,9 +70,14 @@ jobs:

7070

- name: Environment Information

7171

run: npx envinfo

7272

- name: Build

73-

run: make -C node build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"

73+

working-directory: node

74+

run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"

7475

- name: Test

75-

run: make -C node test-ci -j1 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9"

76+

working-directory: node

77+

run: make test-ci -j1 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9"

78+

- name: Ensure running tests did not cause any change in the tree

79+

working-directory: node

80+

run: git add -A && git diff --name-only --exit-code --staged

7681

- name: Re-run test in a folder whose name contains unusual chars

7782

run: |

7883

mv node "$DIR"