Skip to content

Commit

Permalink
chore: test detecting deleted unstaged files
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 29, 2023
1 parent 5dc77cf commit b255370
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,25 @@ jobs:
run: |
echo "No Changes found: (Not expected)"
exit 1
- name: Delete test/new.txt without staging
run: |
rm test/new.txt
- name: Test deletion of test/new.txt
uses: ./
id: deleted_file_test
with:
files: |
test/new.txt
- name: Display deleted file test result
if: steps.deleted_file_test.outputs.files_changed == 'true'
run: |
echo "Deletion detected: ${{ steps.deleted_file_test.outputs.changed_files }}"
- name: Verify Deletion of test/new.txt
if: steps.deleted_file_test.outputs.files_changed != 'true'
run: |
echo "No Deletion detected: (Not expected)"
exit 1

0 comments on commit b255370

Please sign in to comment.