Skip to content

Commit

Permalink
feat(sage-monorepo): test the projects affected by the staged files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter authored Oct 8, 2024
1 parent f930ca4 commit 7b68e3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,10 @@ module.exports = {
// Lint files with SQLFluff
`poetry run sqlfluff lint ${filenames.join(' ')}`,
],

'**/*': (filenames) => [
// Test the projects affected by the staged files. This task assumes that formatting files and
// testing affected projects can be safely run in parallel.
`nx affected --target=test --files=${filenames.join(',')}`,
],
};

0 comments on commit 7b68e3c

Please sign in to comment.