Skip to content

Commit

Permalink
Update e2e_detox_mapping.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rbontrager committed Nov 7, 2024
1 parent 9f899c1 commit a476544
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/e2e_detox_mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,20 @@ jobs:
uses: tj-actions/changed-files@v41
with:
dir_names: true
json: true
base_sha: "${{ steps.get-sha.outputs.sha }}"
- name: Get file difference by file name
id: changed_files_file_name
uses: tj-actions/changed-files@v41
with:
json: true
dir_names: true
dir_names_include_files: true
base_sha: "${{ steps.get-sha.outputs.sha }}"
- name: Check if directory/file is in detox mapping
id: detox_mapping_check
run: |
directoryNames='cat ./VAMobile/e2e/package.json | jq '.directory''
for ((i=0; i<$(echo ${{steps.changed_files_dir.outputs.all_changed_and_modified_files}} | jq 'length'); i+=1)); do
directory=$(echo ${{steps.changed_files_dir.outputs.all_changed_and_modified_files}} | jq --arg number $i '.[$number]')
for directory in ${{steps.changed_files_dir.outputs.all_changed_and_modified_files}}; do
echo "$directory"
baseDirectory="${directory##*/}"
if [[ $(echo $directoryNames | jq --arg fileName $baseDirectory '.["$fileName"]') == null ]]; then
exit 1
Expand Down

0 comments on commit a476544

Please sign in to comment.