Skip to content

Commit

Permalink
Skip coverage tests if more than two adapters were modified (#3423)
Browse files Browse the repository at this point in the history
Co-authored-by: onkar hanumante <[email protected]>
  • Loading branch information
onkarvhanumante and onkar hanumante authored Jan 25, 2024
1 parent 8bd778c commit 73b895e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/adapter-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ jobs:
return ""
}
const helper = utils.diffHelper({github, context})
const files = await helper.getDirectories(directoryExtractor)
return files.length == 0 ? "" : JSON.stringify(files);
const directories = await helper.getDirectories(directoryExtractor)
// run coverage for maximum of 2 directories
return (directories.length == 0 || directories.length > 2) ? "" : JSON.stringify(directories)
- name: Run coverage tests
id: run_coverage
Expand Down

0 comments on commit 73b895e

Please sign in to comment.