Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update test #362

Merged
merged 8 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ jobs:
printf '%s\n' "323442" "424" >> test/new.txt
printf '%s\n' "323442" "424" >> test/new1.txt
printf '%s\n' "323442" "424" >> test/new2.txt
- name: Test test/new.txt file has changes
printf '%s\n' "323442" "424" >> "test/\$(whoami).txt"
shell: bash
- name: Test test/new*.txt file has changes
uses: ./
id: changed_files_expected
with:
Expand Down Expand Up @@ -114,6 +116,7 @@ jobs:
!test/new.txt
!test/new1.txt
!test/new2.txt
!test/$(whoami).txt
!unstaged.txt
- name: Verify Changes to unstaged.txt are ignored
if: steps.changed_unstaged_files_not_expected.outputs.files_changed != 'false'
Expand All @@ -128,6 +131,7 @@ jobs:
!test/new.txt
!test/new1.txt
!test/new2.txt
!test/$(whoami).txt
unstaged.txt
- name: Verify Changes to unstaged.txt are ignored
if: steps.changed_unstaged2_files_expected.outputs.files_changed != 'true'
Expand Down
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
using: 'composite'
steps:
- name: Glob match
uses: tj-actions/glob@v17
uses: tj-actions/glob@v18
if: inputs.files != ''
id: glob
with:
Expand All @@ -51,6 +51,7 @@ runs:
separator: "|"
match-directories: false
match-gitignore-files: ${{ inputs.match-gitignore-files }}
escape-paths: ${{ inputs.safe_output }}
- run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh
id: verify-changed-files
Expand Down
1 change: 1 addition & 0 deletions test/$(whoami).txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test
Loading