Change detection via git + rename githubToken to token (#9)

This commit is contained in:
Michal Dorner 2020-05-26 17:16:09 +02:00 committed by GitHub
parent a2e5f9f7bb
commit 1cbb925a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 1318 additions and 31 deletions

2
.github/filters.yml vendored
View file

@ -1,2 +1,4 @@
error:
- not_existing_path/**/*
any:
- "**/*"

View file

@ -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