mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-09 10:39:05 +00:00
Fixes - making action pass self-test (#3)
* Remove accidental string interpolation from action.yml * Fix test workflow filters * Improve self-test * Add test case for matching any changed file * Fix workflow test - step `name` was used instead of `id` * Extend default pull_request trigger types * Remove `edited` trigger to avoid executing workflow on non-code changes
This commit is contained in:
parent
94603ab6f7
commit
f9b6173f5e
5 changed files with 25 additions and 6 deletions
__tests__
|
@ -70,4 +70,14 @@ describe('matching tests', () => {
|
|||
const match = filter.match(['test/test.js'])
|
||||
expect(match.src).toBeTruthy()
|
||||
})
|
||||
|
||||
test('matches anything', () => {
|
||||
const yaml = `
|
||||
any:
|
||||
- "**/*"
|
||||
`
|
||||
const filter = new Filter(yaml)
|
||||
const match = filter.match(['test/test.js'])
|
||||
expect(match.any).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue