Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack authored Dec 11, 2020
1 parent f2ec5bd commit 81b108f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,31 @@ jobs:
uses: actions/checkout@v2
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
- name: Test sql file has no changes
uses: ./
id: changed_files_non_expected
with:
files: |
test/new.sql
test/new/.(sql|txt)
- name: Verify Changes
if: steps.changed_files_non_expected.outputs.files_changed == 'true'
run: |
echo "Changes found: (Not expected)"
exit 1
- name: Make changes
run: |
echo "323442424" >> test/new.txt
- name: Test sql file has no changes
uses: ./
id: changed_files_expected
with:
files: |
test/new.txt
test/new.sql
test/new/.(sql|txt)
- name: Verify Changes to test/new.txt
run: |
if: steps.changed_files_expected.outputs.files_changed != 'true'
echo "No Changes found: (Not expected)"
exit 1

0 comments on commit 81b108f

Please sign in to comment.