-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4c4337
commit cb42319
Showing
78 changed files
with
1,862 additions
and
906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# workflow to check that PR does not break any Apple App Store max file or max character limits | ||
name: "App Store requirement checks" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
- 'release/v**' | ||
paths: | ||
- "VAMobile/ios/fastlane/metadata/en-US/**" | ||
- "VAMobile/ios/fastlane/screenshots/**" | ||
|
||
jobs: | ||
check_ios_ipad_pro2_images: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 10 | ||
working_dir: VAMobile/ios/fastlane/screenshots/en-US | ||
counting_function: find . -maxdepth 1 -name "ipadPro2*" -printf '.' | wc -m | ||
check_ios_ipad_pro13_images: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 10 | ||
working_dir: VAMobile/ios/fastlane/screenshots/en-US | ||
counting_function: find . -maxdepth 1 -name "ipadPro13*" -printf '.' | wc -m | ||
check_ios_ipad_pro129_images: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 10 | ||
working_dir: VAMobile/ios/fastlane/screenshots/en-US | ||
counting_function: find . -maxdepth 1 -name "ipadPro12*" -printf '.' | wc -m | ||
check_ios_iphone55_images: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 10 | ||
working_dir: VAMobile/ios/fastlane/screenshots/en-US | ||
counting_function: find . -maxdepth 1 -name "phone5*" -printf '.' | wc -m | ||
check_ios_iphone67_images: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 10 | ||
working_dir: VAMobile/ios/fastlane/screenshots/en-US | ||
counting_function: find . -maxdepth 1 -name "iphone6*" -printf '.' | wc -m | ||
check_ios_description: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 4000 | ||
working_dir: VAMobile/ios/fastlane/metadata/en-US | ||
counting_function: wc -c description.txt | awk '{print $1}' | ||
check_ios_release_notes: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 4000 | ||
working_dir: VAMobile/ios/fastlane/metadata/en-US | ||
counting_function: wc -c release_notes.txt | awk '{print $1}' | ||
check_ios_keyword: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 1000 | ||
working_dir: VAMobile/ios/fastlane/metadata/en-US | ||
counting_function: wc -c keywords.txt | awk '{print $1}' | ||
check_ios_title: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 50 | ||
working_dir: VAMobile/ios/fastlane/metadata/en-US | ||
counting_function: wc -c title.txt | awk '{print $1}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# workflow to check that PR does not break any Googke Play Store max file or max character limits | ||
name: "App Store requirement checks" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
- 'release/v**' | ||
paths: | ||
- "VAMobile/android/fastlane/metadata/android/en-US/**" | ||
|
||
jobs: | ||
check_max_android_phone_screenshots: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 8 | ||
working_dir: VAMobile/android/fastlane/metadata/android/en-US/images/phoneScreenshots | ||
counting_function: ls | wc -l | ||
check_max_android_seven_inch_screenshots: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 8 | ||
working_dir: VAMobile/android/fastlane/metadata/android/en-US/images/sevenInchScreenshots | ||
counting_function: ls | wc -l | ||
check_android_long_description: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 4000 | ||
working_dir: VAMobile/android/fastlane/metadata/android/en-US | ||
counting_function: wc -c full-description.txt | awk '{print $1}' | ||
check_android_short_description: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 80 | ||
working_dir: VAMobile/android/fastlane/metadata/android/en-US | ||
counting_function: wc -c short-description.txt | awk '{print $1}' | ||
check_android_change_log: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 500 | ||
working_dir: VAMobile/android/fastlane/metadata/android/en-US/changelogs | ||
counting_function: wc -c default.txt | awk '{print $1}' | ||
check_android_release_name: | ||
uses: ./.github/workflows/check_max_size.yml | ||
with: | ||
max_size: 50 | ||
working_dir: VAMobile/android/fastlane/metadata/android/en-US | ||
counting_function: wc -c title.txt | awk '{print $1}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
working_dir: | ||
required: true | ||
type: string | ||
max_size: | ||
required: true | ||
type: string | ||
counting_function: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
check_max_files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
if [[ $(${{ inputs.counting_function }}) -gt ${{ inputs.max_size }} ]] | ||
then | ||
echo "PR exceeds app store limits of ${{ inputs.max_size }} for this check" | ||
exit 1 | ||
fi | ||
working-directory: ${{ inputs.working_dir }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.