mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
Change detection via git + rename githubToken
to token
(#9)
This commit is contained in:
parent
a2e5f9f7bb
commit
1cbb925a17
9 changed files with 1318 additions and 31 deletions
2
.github/filters.yml
vendored
2
.github/filters.yml
vendored
|
@ -1,2 +1,4 @@
|
|||
error:
|
||||
- not_existing_path/**/*
|
||||
any:
|
||||
- "**/*"
|
43
.github/workflows/pull-request-verification.yml
vendored
43
.github/workflows/pull-request-verification.yml
vendored
|
@ -16,7 +16,23 @@ jobs:
|
|||
npm install
|
||||
npm run all
|
||||
|
||||
test:
|
||||
test-inline:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
filters: |
|
||||
error:
|
||||
- not_existing_path/**/*
|
||||
any:
|
||||
- "**/*"
|
||||
- name: filter-test
|
||||
if: steps.filter.outputs.any != 'true' || steps.filter.outputs.error == 'true'
|
||||
run: exit 1
|
||||
|
||||
test-external:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -24,16 +40,19 @@ jobs:
|
|||
id: filter
|
||||
with:
|
||||
filters: '.github/filters.yml'
|
||||
- uses: ./
|
||||
id: inlineFilter
|
||||
with:
|
||||
filters: |
|
||||
src:
|
||||
- src/**/*
|
||||
tests:
|
||||
- __tests__/**/*
|
||||
any:
|
||||
- "**/*"
|
||||
- name: filter-test
|
||||
if: steps.filter.outputs.any != 'true' || steps.inlineFilter.outputs.any != 'true'
|
||||
if: steps.filter.outputs.any != 'true' || steps.filter.outputs.error == 'true'
|
||||
run: exit 1
|
||||
|
||||
test-without-token:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
token: ''
|
||||
filters: '.github/filters.yml'
|
||||
- name: filter-test
|
||||
if: steps.filter.outputs.any != 'true' || steps.filter.outputs.error == 'true'
|
||||
run: exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue