Skip to content

Commit 7b68e3c

Browse files
authored
feat(sage-monorepo): test the projects affected by the staged files (#2888)
1 parent f930ca4 commit 7b68e3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lint-staged.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,10 @@ module.exports = {
4040
// Lint files with SQLFluff
4141
`poetry run sqlfluff lint ${filenames.join(' ')}`,
4242
],
43+
44+
'**/*': (filenames) => [
45+
// Test the projects affected by the staged files. This task assumes that formatting files and
46+
// testing affected projects can be safely run in parallel.
47+
`nx affected --target=test --files=${filenames.join(',')}`,
48+
],
4349
};

0 commit comments

Comments
 (0)