Skip to content

Commit

Permalink
Add tests of source input
Browse files Browse the repository at this point in the history
  • Loading branch information
nafarlee committed Dec 6, 2023
1 parent be50597 commit aaaa441
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,26 @@ jobs:
- if: steps.for-each-7.outputs.matches != '[]'
run: exit 1

- name: Run colpal/actions-for-each
id: for-each-8
uses: ./
with:
patterns: |
banana/*
source: '["banana/a.txt","banana/b.txt","apple/a.txt"]'
- if: steps.for-each-8.outputs.matches != '["banana/a.txt","banana/b.txt"]'
run: exit 1

- name: Run colpal/actions-for-each
id: for-each-9
uses: ./
with:
patterns: |
**/a.txt
source: '["banana/a.txt","banana/b.txt","apple/a.txt"]'
- if: steps.for-each-8.outputs.matches != '["banana/a.txt","apple/a.txt"]'
run: exit 1

- name: Run colpal/actions-for-each
id: for-each
uses: ./
Expand Down

0 comments on commit aaaa441

Please sign in to comment.