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

spike/9918-rachael-detox-add-what-to-run-to-code #9919

Merged
merged 127 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
3854a75
spike/9918-rachael-detox-add-what-to-run-to-code
rbontrager Oct 18, 2024
d484da1
Updates
rbontrager Oct 18, 2024
ad26e7b
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
a3c66f3
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
2af67b9
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
a280a33
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
a412a4b
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
c640003
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
8477fa6
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
3ad43f7
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
e8c67f1
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
ae906d4
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
799df0b
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
f472dee
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
e9d0e96
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
e106a8d
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
5b3f0d2
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
471e9cb
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
34b714d
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
5de4712
Update e2e_detox_mapping.yml
rbontrager Oct 18, 2024
b32a7a0
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
b192053
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
42f57d9
Updates
rbontrager Oct 21, 2024
bc7e6d7
Add another line to make sure the else is working
rbontrager Oct 21, 2024
e3f67f6
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
5277b3a
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
e735239
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
d383ffb
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
84b15be
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
e42d319
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
9fb12c1
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
5851d5c
Merge branch 'develop' into spike/9918-rachael-detox-add-what-to-run-…
rbontrager Oct 21, 2024
837deed
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
92a4a92
Merge branch 'spike/9918-rachael-detox-add-what-to-run-to-code' of ht…
rbontrager Oct 21, 2024
4523c2a
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
85ebf34
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
512f2df
Update e2e_detox_mapping.yml
rbontrager Oct 21, 2024
f09f331
Remove old logic test new
rbontrager Oct 23, 2024
e83ece2
Merge branch 'develop' into spike/9918-rachael-detox-add-what-to-run-…
rbontrager Oct 23, 2024
b8c0105
Update e2e_detox_mapping.yml
rbontrager Oct 23, 2024
722432e
Update e2e_detox_mapping.yml
rbontrager Oct 23, 2024
648f5b0
Move appeals.e2e to appeals folder
rbontrager Oct 23, 2024
039475d
Update logic
rbontrager Nov 4, 2024
8c0fc09
Trying new logic
rbontrager Nov 7, 2024
792e276
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
30f5df5
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
c05e223
Merge branch 'develop' into spike/9918-rachael-detox-add-what-to-run-…
rbontrager Nov 7, 2024
38033f4
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
e9dbfaf
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
478b6cb
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
67bc0f3
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
0752ccf
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
5fdea13
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
3768b1b
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
9f899c1
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
a476544
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
b730766
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
4428fa3
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
8c0f25f
Update e2e_detox_mapping.yml
rbontrager Nov 7, 2024
99c636c
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
cd23fad
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
8656431
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
7c2d316
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
5110b7d
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
3a0a466
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
0f6d7a3
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
be0a0e9
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
21f7c87
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
e5117ff
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
4c2c3d4
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
518e6e9
Updates
rbontrager Nov 8, 2024
7b439b0
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
d7b0234
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
309df2b
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
4a5d7ed
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
43948a4
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
b4d81ce
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
dc8d541
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
699f742
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
8719fd9
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
ee2f914
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
242c1db
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
a3115f0
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
1194d55
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
5bf59cd
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
0499a42
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
c87da5d
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
b766236
Update e2e_detox_mapping.yml
rbontrager Nov 8, 2024
e7b752c
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
b4cbaed
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
2705548
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
3ee5c3c
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
8635905
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
11fe2c3
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
e77bf37
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
7e0e0bd
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
f147352
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
f186696
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
61030bb
Merge branch 'develop' into spike/9918-rachael-detox-add-what-to-run-…
rbontrager Nov 12, 2024
2a994d0
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
e794d7e
Merge branch 'spike/9918-rachael-detox-add-what-to-run-to-code' of ht…
rbontrager Nov 12, 2024
63ba412
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
b740213
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
a723202
Remove echo statements, uncomment e2e_android, change all to detox te…
rbontrager Nov 12, 2024
296de29
Cleaning Up
rbontrager Nov 12, 2024
446f0ed
Check directory spelling logic
rbontrager Nov 12, 2024
05454f6
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
3fa6304
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
cf1efac
Updates
rbontrager Nov 12, 2024
8ddf685
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
8277444
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
7a40562
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
4d95dac
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
07cd6a2
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
1c30ba1
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
3bfdb03
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
e578dc4
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
a34b079
Fix mapping, update e2e mapping logic
rbontrager Nov 12, 2024
8d8c3f1
Updates
rbontrager Nov 12, 2024
0e1fec2
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
b48c49b
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
5404b6a
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
e4c2346
Fix e2e mapping misspellings, add file logic to e2e name check
rbontrager Nov 12, 2024
61727a0
Update e2e_detox_mapping.yml
rbontrager Nov 12, 2024
e0329d6
Fix final e2e misspellings, add exit on error back in
rbontrager Nov 12, 2024
ea2c4f4
Merge branch 'develop' into spike/9918-rachael-detox-add-what-to-run-…
rbontrager Nov 12, 2024
c43baf8
Merge branch 'develop' into spike/9918-rachael-detox-add-what-to-run-…
rbontrager Dec 2, 2024
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
192 changes: 97 additions & 95 deletions .github/workflows/e2e_detox_mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,108 +51,110 @@ jobs:
- name: Get SHA
id: get-sha
run: echo "sha=$(git rev-parse origin/develop)" >> $GITHUB_OUTPUT
- name: Get file difference by directory
id: changed_files_dir
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
base_sha: "${{ steps.get-sha.outputs.sha }}"
path: './VAMobile/src'
- name: Check if directory/file is in detox mapping
id: detox_mapping_check
run: |
fileNames=$(jq -r '.files' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
directoryNames=$(jq -r '.directory' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
for file in ${{steps.changed_files_file_name.outputs.all_changed_and_modified_files}}; do
baseFile=$(echo $file | sed 's#.*/##')
baseFile=$(echo $baseFile | sed 's/ //g')
fileFound=$(echo $fileNames | jq --arg fileName "$baseFile" '.[$fileName]')
if [[ "$fileFound" == "null" ]]; then
fileDirectory=$(dirname $file)
baseDirectory=$(echo $fileDirectory | sed 's#.*/##')
baseDirectory=$(echo $baseDirectory | sed 's/ //g')
directoryFound=$(echo $directoryNames | jq --arg fileName "$baseDirectory" '.[$fileName]')
if [[ "$directoryFound" == "null" ]]; then
echo "Missing File: $file or missing directory: $fileDirectory"
exit 1
fi
fi
done
- name: Check if directory/file is spelled correctly
id: detox_mapping_spell_check
run: |
directoryNames=$(jq -r '.directory' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
for directory in $(echo $directoryNames | jq -r 'keys | .[]'); do
if [[ "$(find ${{ github.workspace }}/VAMobile/src -type d -name "$directory")" == "" ]]; then
directoryMisspelled="true"
echo "Directory misspelled: $directory"
exit 1
fi
done
fileNames=$(jq -r '.files' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
for file in $(echo $fileNames | jq -r 'keys | .[]'); do
if [[ "$(find ${{ github.workspace }}/VAMobile/src -type f -name "$file")" == "" ]]; then
fileMisspelled="true"
echo "File misspelled: $file"
exit 1
fi
done
- name: Check if e2eNames is spelled correctly
id: detox_mapping_e2e_names_spell_check
run: |
directoryNames=$(jq -r '.directory' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
for directory in $(echo $directoryNames | jq 'keys | .[]'); do
for e2eTest in $(echo $directoryNames | jq --argjson directory "$directory" --raw-output '.[$directory] | .[]'); do
if [[ "$(find ${{ github.workspace }}/VAMobile/e2e/tests -type f -name "${e2eTest}.e2e.ts")" == "" ]]; then
echo "e2eTests in $directory are not spelled correctly"
echo "$e2eTests misspelled: $e2eTest"
exit 1
fi
done
done
fileNames=$(jq -r '.files' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
for file in $(echo $fileNames | jq 'keys | .[]'); do
for e2eTest in $(echo $fileNames | jq --argjson file "$file" --raw-output '.[$file] | .[]'); do
if [[ "$(find ${{ github.workspace }}/VAMobile/e2e/tests -type f -name "${e2eTest}.e2e.ts")" == "" ]]; then
echo "e2eTests in $file are not spelled correctly"
echo "$e2eTests misspelled: $e2eTest"
exit 1
fi
done
done
- name: Get testing matrix array
id: testing_matrix
run: |
resp=$(echo ${{steps.changed_files_dir.outputs.all_changed_and_modified_files}} |
jq 'select(contains(["LoginScreen"])) += ["LoginScreen"] |
select(contains(["AppealDetailsScreen"])) += ["Appeals", "AppealsExpanded"] |
select(contains(["NeedHelpData"]) or contains(["NoClaimsAndAppeals"]) or contains(["NoClaimsAndAppealsAccess"]) or contains(["ClaimsAndAppealsListView"]) or contains(["claimsAndAppeals"])) += ["Appeals", "AppealsExpanded", "Claims"] |
select(contains(["ClaimDetailsScreen"]) or contains(["ClaimLettersScreen"]) or contains(["SubmitEvidence"]) or contains(["ClaimsHistoryScreen"])) += ["Claims"] |
select(contains(["ClaimLettersScreen"]) or contains(["decisionLetters"])) += ["DecisionLetters"] |
select(contains(["DisabilityRatingsScreen"]) or contains(["disabilityRating"])) += ["DisabilityRatings", "VeteranStatusCard"] |
select(contains(["Letters"]) or contains(["letters"])) += ["VALetters"] |
select(contains(["Appointments"]) or contains(["appointments"])) += ["Appointments", "AppointmentsExpanded"] |
select(contains(["CernerAlert"]) or contains(["Facilities"])) += ["Cerner"] |
select(contains(["Pharmacy"]) or contains(["prescriptions"])) += ["Prescriptions"] |
select(contains(["SecureMessaging"]) or contains(["secureMessaging"])) += ["Messages"] |
select(contains(["Vaccines"]) or contains(["vaccines"])) += ["VaccineRecords"] |
select(contains(["ContactVAScreen"])) += ["HomeScreen"] |
select(contains(["MilitaryInformationScreen"]) or contains(["militaryService"]) or contains(["Nametag"])) += ["MilitaryInformation", "VeteranStatusCard"] |
select(contains(["PersonalInformationScreen"]) or contains(["demographics"]) or contains(["personalInformation"])) += ["PersonalInformationScreen", "VeteranStatusCard", "HomeScreen", "ProfileScreen"] |
select(contains(["SettingsScreen"])) += ["SettingsScreen"] |
select(contains(["VeteransCrisisLineScreen"])) += ["VeteransCrisisLine", "SignIn"] |
select(contains(["VeteranStatusScreen"])) += ["VeteranStatusCard"] |
select(contains(["OnboardingCarousel"])) += ["Onboarding"] |
select(contains(["PaymentHistory"]) or contains(["payments"])) += ["Payments"] |
select(contains(["DirectDepositScreen"]) or contains(["directDeposit"])) += ["DirectDeposit"] |
select(contains(["SplashScreen"])) += ["Onboarding", "LoginScreen"] |
select(contains(["auth"])) += ["SignIn"] |
select(contains(["authorizedServices"])) += ["Appeals", "AppealsExpanded", "Appointments", "AppointmentsExpanded", "Claims", "DirectDeposit", "DisabilityRatings", "PersonalInformationScreen", "VALetters", "MilitaryInformation", "Payments", "Prescriptions", "Messages", "VeteranStatusCard"] |
select(contains(["contactInformation"]) or contains(["ContactInformationScreen"])) += ["ContactInformation", "VALetters"] |
select(contains(["NotificationManager"])) += ["SettingsScreen", "PushNotifications", "Onboarding"] |
select(contains(["Types"]) or contains(["VAImage"])) +=
["AvailabilityFramework", "Cerner", "ContactInformation", "VALetters", "LoginScreen", "Onboarding", "ProfileScreen", "PushNotifications", "SettingsScreen", "SignIn", "VaccineRecords", "Claims", "Appeals", "AppealsExpanded", "DisabilityRatings", "Appointments", "AppointmentsExpanded", "Prescriptions", "Messages", "MilitaryInformation", "HomeScreen", "VeteransCrisisLine", "VeteranStatusCard", "DirectDeposit", "Payments", "PersonalInformationScreen"]
| unique')
resp_file=$(echo ${{steps.changed_files_file_name.outputs.all_changed_and_modified_files}} |
jq 'select(contains(["appealData.tsx"])) += ["Appeals", "AppealsExpanded"] |
select(contains(["claimData.tsx"]) or contains(["ClaimsScreen.tsx"]) or contains(["Claims.json"]) or contains(["Claims.ts"]) or contains(["ClaimsAndAppealsSlice"])
or contains(["ClaimsAndAppealsData"]) or contains(["claims.ts"]) or contains(["claims.tsx"])) += ["Claims", "Appeals", "AppealsExpanded", "DecisionLetters"] |
select(contains(["DisabilityRatingData"]) or contains(["disabilityRating.json"]) or contains(["disabilityRating.ts"])) += ["DisabilityRatings", "VeteranStatusCard"] |
select(contains(["letters.json"]) or contains(["letters.ts"]) or contains(["Letters.ts"]) or contains(["LettersData"]) or contains(["LetterBeneficiaryData"]) or contains(["BasicError"])) += ["VALetters"] |
select(contains(["HealthScreen.tsx"]) or contains(["HealthStackScreens.tsx"])) += ["Appointments", "AppointmentsExpanded", "Cerner", "Prescriptions", "Messages", "VaccineRecords"] |
select(contains(["BenefitsScreen.tsx"]) or contains(["BenefitsStackScreens.tsx"])) += ["DisabilityRating", "Claims", "Appeals", "VALetters"] |
select(contains(["Appointments.json"]) or contains(["Appointments.ts"]) or contains(["AppointmentsSlice.ts"]) or contains(["appointments.ts"]) or contains(["canclAppointment.tsx"]) or contains(["getAppointments.tsx"]) or contains(["appointments.tsx"])) += ["Appointments", "AppointmentsExpanded"] |
select(contains(["getFacilitiesInfo"]) or contains(["FacilityData"])) += ["Cerner"] |
select(contains(["Prescriptions.json"]) or contains(["Prescriptions.ts"]) or contains(["SelectionList"]) or contains(["MultiTouchCard"]) or contains(["RadioGroupModal"])) += ["Prescriptions"] |
select(contains(["SecureMessaging.json"]) or contains(["SecureMessaging.ts"]) or contains(["InLineTextWithIcons"])
or contains(["MessageAlert"]) or contains(["MessageList"]) or contains(["MessagesCountTag"]) or contains(["secureMessaging.ts"]) or contains(["TextLineWithIcon"])) += ["Messages"] |
select(contains(["vaccine"])) += ["VaccineRecords"] |
select(contains(["EncourageUpdate.tsx"]) or contains(["WhatsNew.tsx"])) += ["HomeScreen"] |
select(contains(["countries"]) or contains(["militaryPostOffices"]) or contains(["militaryStates"]) or contains(["states.ts"]) or contains(["PhoneData"]) or contains(["EmailData"])) += ["ContactInformation"] |
select(contains(["ServiceHistoryData"])) += ["MilitaryInformation", "VeteranStatusCard"] |
select(contains(["demographics"]) or contains(["PersonalInformation"]) or contains(["UserData"]) or contains(["Demographics"])) += ["PeronalInformationScreen", "VeteranStatusCard", "HomeScreen", "ProfileScreen"] |
select(contains(["settingsSlice.ts"])) += ["SettingsScreen"] |
select(contains(["ProfileScreen.tsx"]) or contains(["profile.json"]) or contains(["profile.ts"])) += ["ProfileScreen", "ContactInformation", "MilitaryInformation", "PersonalInformationScreen", "SettingsScreen", "VALetters", "Payments"] |
select(contains(["HomeScreen.tsx"]) or contains(["HomeStackScreens.tsx"])) += ["ContactVAScreen", "ProfileScreen", "VeteranStatusCard"] |
select(contains(["carousel"])) += ["Onboarding"] |
select(contains(["payments.json"]) or contains(["payments.ts"])) += ["Payments"] |
select(contains(["accounts.ts"])) += ["DirectDeposit"] |
select(contains(["PaymentsScreen.tsx"]) or contains(["PaymentsStackScreens.tsx"])) += ["Payments", "DirectDeposit"] |
select(contains(["decisionLetters.ts"]) or contains(["decisionLetters.json"]) or contains(["claimData.tsx"])) += ["Claims"] |
select(contains(["getAuthorizedServices.json"])) += ["Appeals", "AppealsExpanded", "Appointments", "AppointmentsExpanded", "Claims", "DirectDeposit", "DisabilityRatings", "PersonalInformationScreen", "VALetters", "MilitaryInformation", "Payments", "Prescriptions", "Messages", "VeteranStatusCard"] |
select(contains(["notifications.json"]) or contains(["notifications.ts"]) or contains(["Notifications.ts"])) += ["SettingsScreen", "PushNotifications"] |
select(contains(["ErrorComponent"])) += ["Appeals", "AppealsExpanded", "DisabilityRatings", "VALetters", "Appointments", "AppointmentsExpanded", "Prescriptions", "Messages", "VaccineRecords", "ProfileScreen", "ContactInformation", "MilitaryInformation", "PersonalInformationScreen", "SettingsScreen", "Payments"] |
select(contains(["VAModalPicker"])) += ["Appointments", "Messages", "Payments"] |
select(contains(["RadioGroup"])) += ["PersonalInformationScreen", "ContactInformation"] |
select(contains(["VATextInput"]) or contains(["WaygateWrapper"])) += ["AvailabilityFramework"] |
select(contains(["AccordionCollapsible"])) += ["Claims", "Messages"] |
select(contains(["AlertWithHaptics"])) += ["AvailabilityFramework", "VALetters", "Appointments", "Prescriptions", "Messages", "ContactInformation", "DirectDeposit", "Cerner", "Prescriptions", "ContactInformation"] |
select(contains(["AppVersionAndBuild"])) += ["LoginScreen", "SettingsScreen"] |
select(contains(["ClickForActionLink"]) or contains(["ClickToCallPhoneNumber"])) += ["AvailabilityFramework", "Claims", "Appeals", "DisabilityRatings", "Appointments", "Prescriptions", "Messages", "MilitaryInformation", "HomeScreen", "VeteransCrisisLine", "VeteranStatusCard", "DirectDeposit", "Payments", "PersonalInformationScreen"] |
select(contains(["CollapsibleView"])) += ["Appeals", "AppealsExpanded", "Messages", "DirectDeposit"] |
select(contains(["DefaultList"])) += ["Claims", "DisabilityRattings", "VALetters", "ContactInformation", "Appointments", "VaccineRecords", "MilitaryInformation", "PersonalInformationScreen", "DirectDeposit", "Prescriptions", "Payments", "SettingsScreen"] |
select(contains(["LabelTag"])) += ["Prescriptions", "Messages"] |
select(contains(["SimpleList"])) += ["Messages", "Claims", "Appeals", "VALetters", "Apppointments", "Prescriptions", "VaccineRecords"] |
select(contains(["Pagination"])) += ["Appointments", "Claims", "Appeals", "AppealsExpanded", "Prescriptions", "Messages", "Payments", "VaccinesScreen"] |
select(contains(["SnackBar"])) += ["Claims", "Messages", "ContactInformation", "PersonalInformationScreen", "DirectDeposit"] |
select(contains(["VABulletList"])) += ["Appeals", "AppealsExpanded", "Claims", "Prescriptions", "Cerner", "Messages", "Onboarding", "SignIn", "SettingsScreen"] |
select(contains(["CrisisLineButton"])) += ["HomeScreen", "SignIn", "LoginScreen", "VeteransCrisisLine"] |
select(contains(["ActivityButton.tsx"])) += ["HomeScreen", "Prescriptions", "Appointments", "Claims", "Appeals", "DecisionLetters"] |
select(contains(["LinkRow.tsx"])) += ["HomeScreen"] |
select(contains(["Screens.ts"]) or contains(["BasicError"]) or contains(["LoadingComponent"]) or contains(["Box"]) or contains(["HeaderTitle"]) or contains(["LargeNavButton"])
or contains(["TextArea"]) or contains(["TextLines"]) or contains(["TextView"]) or contains(["backButtonLabels"]) or contains(["common.ts"])) +=
["AvailabilityFramework", "Cerner", "ContactInformation", "VALetters", "LoginScreen", "Onboarding", "ProfileScreen", "PushNotifications", "SettingsScreen", "SignIn", "VaccineRecords", "Claims", "Appeals", "AppealsExpanded", "DisabilityRatings", "Appointments", "AppointmentsExpanded", "Prescriptions", "Messages", "MilitaryInformation", "HomeScreen", "VeteransCrisisLine", "VeteranStatusCard", "DirectDeposit", "Payments", "PersonalInformationScreen"]
| unique ')

test_matrix=$(echo "$resp" | jq --argjson a "${resp_file}" --argjson b "${resp}" --compact-output '$a + $b | unique')
echo "$test_matrix"
test_matrix=$(echo $test_matrix | jq --compact-output 'map(select(. == ("Appeals", "AppealsExpanded", "Appointments", "AppointmentExpanded", "AvailabilityFramework", "Cerner", "Claims",
"ContactInformation", "DirectDeposit", "DisabilityRatings", "HomeScreen", "VALetters", "LoginScreen", "Messages", "MilitaryInformation", "Navigation", "Onboarding", "Payments",
"PersonalInformationScreen", "Prescriptions", "ProfileScreen", "PushNotifications", "SettingsScreen", "SignIn", "VaccineRecords",
"VeteransCrisisLine", "VeteranStatusCard")))')
firstInstanceFile="true"
directoryNames=$(jq -r '.directory' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
fileNames=$(jq -r '.files' ${{ github.workspace }}/VAMobile/e2e/detoxMapping.json)
for file in ${{steps.changed_files_file_name.outputs.all_changed_and_modified_files}}; do
baseFile=$(echo $file | sed 's#.*/##')
baseFile=$(echo $baseFile | sed 's/ //g')
fileFound=$(echo $fileNames | jq --arg fileName "$baseFile" '.[$fileName]')
if [[ "$fileFound" == "null" ]]; then
fileDirectory=$(dirname $file)
baseDirectory=$(echo $fileDirectory | sed 's#.*/##')
baseDirectory=$(echo $baseDirectory | sed 's/ //g')
directoryFound=$(echo $directoryNames | jq --arg fileName "$baseDirectory" '.[$fileName]')
if [[ "$firstInstanceFile" == "true" ]]; then
test_matrix=$directoryFound
test_matrix=$(echo $test_matrix | jq -c '.')
firstInstanceFile="false"
else
test_matrix=$(echo $test_matrix | jq -c '.')
test_matrix=$(echo $test_matrix | jq --argjson matrix "$directoryFound" '. += $matrix')
fi
else
if [[ "$firstInstanceFile" == "true" ]]; then
test_matrix=$fileFound
test_matrix=$(echo $test_matrix | jq -c '.')
firstInstanceFile="false"
else
test_matrix=$(echo $test_matrix | jq -c '.')
test_matrix=$(echo $test_matrix | jq --argjson matrix "$fileFound" '. += $matrix')
fi
fi
done
test_matrix=$(echo $test_matrix | jq -c 'unique')
echo "TESTING_MATRIX=$test_matrix" >> $GITHUB_OUTPUT
echo "TEST_RUN=true" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading