Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(circleci): target all YAML files in
.circleci
directory (#27809)
- Loading branch information
1 parent
0497dbd
commit d2f4a1c
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { regexMatches } from '../../../../test/util'; | ||
import { defaultConfig } from '.'; | ||
|
||
describe('modules/manager/circleci/index', () => { | ||
describe('file names match fileMatch', () => { | ||
it.each` | ||
path | expected | ||
${'.circleci/config.yml'} | ${true} | ||
${'.circleci/config.yaml'} | ${true} | ||
${'.circleci/foo.yaml'} | ${true} | ||
${'.circleci/foo.yml'} | ${true} | ||
${'.circleci/foo/config.yaml'} | ${true} | ||
${'.circleci/foo/bar.yml'} | ${true} | ||
${'foo/.circleci/bar.yaml'} | ${true} | ||
${'foo.yml'} | ${false} | ||
${'circleci/foo.yml'} | ${false} | ||
${'circleci/foo.yml'} | ${false} | ||
${'.circleci_foo/bar.yml'} | ${false} | ||
${'.circleci/foo.toml'} | ${false} | ||
`('regexMatches("$path") === $expected', ({ path, expected }) => { | ||
expect(regexMatches(path, defaultConfig.fileMatch)).toBe(expected); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters