GitHub Action
Triple-T validation action
This unnoficial action validates store assets from a Triple-T/gradle-play-publisher repository. Action made by TrianguloY for own proyects, but made publicly so others can benefit from it.
Note that not all checks are performed. The idea is to add missing checks as soon as I have time and knowledge to implement them. You can create an issue if you want to report a missing check, PRs are also welcomed.
Current checks, validated for all sourceSet, locales and tracks:
Missing default-language.txt
: The file $appFolder/src/[sourceSet]/play/default-locale.txt must exist.Invalid default-language.txt
: The file $appFolder/src/[sourceSet]/play/default-locale.txt must match an available language.Invalid listing locale
: locale folders under $appFolder/src/[sourceSet]/play/listings must match an available language.title.txt too large
: The file $appFolder/src/[sourceSet]/play/listings/[locale]/title.txt must be 30 or less characters long (if exists).short-description.txt too large
: The file $appFolder/src/[sourceSet]/play/listings/[locale]/short-description.txt must be 80 or less characters long (if exists).full-description.txt too large
: The file $appFolder/src/[sourceSet]/play/listings/[locale]/full-description.txt must be 4000 or less characters long (if exists).Invalid release-notes locale
: locale folders under $appFolder/src/[sourceSet]/play/release-notes must match an available language.Changelog too large
: The files $appFolder/src/[sourceSet]/play/release-notes/[locale]/[track].txt must be 500 or less characters long.Too many images in icon
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/icon/ must have 1 image (png|jpg|jpeg) or less.Too many images in feature-graphic
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/feature-graphic/ must have 1 image (png|jpg|jpeg) or less.Too many images in phone-screenshots
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/phone-screenshots/ must have 8 images (png|jpg|jpeg) or less.Too many images in tablet-screenshots
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/tablet-screenshots/ must have 8 images (png|jpg|jpeg) or less.Too many images in large-tablet-screenshots
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/large-tablet-screenshots/ must have 8 images (png|jpg|jpeg) or less.Too many images in tv-banner
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/tv-banner/ must have 1 image (png|jpg|jpeg) or less.Too many images in tv-screenshots
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/tv-screenshots/ must have 8 images (png|jpg|jpeg) or less.Too many images in wear-screenshots
: The folder ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/wear-screenshots/ must have 8 images (png|jpg|jpeg) or less.Invalid icon image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/icon/ must have dimensions 512x512.Invalid feature-graphic image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/feature-graphic/ must have dimensions 1024x500.Invalid phone-screenshots image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/phone-screenshots/ must have dimensions between [320,3840]x[320,3840].Invalid tablet-screenshots image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/tablet-screenshots/ must have dimensions between [320,3840]x[320,3840].Invalid large-tablet-screenshots image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/large-tablet-screenshots/ must have dimensions between [320,3840]x[320,3840].Invalid tv-banner image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/tv-banner/ must have dimensions 1280x720.Invalid tv-screenshots image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/tv-screenshots/ must have dimensions between [320,3840]x[320,3840].Invalid wear-screenshots image dimensions
: The images in ${appFolder}/src/[sourceSet]/play/listings/[locale]/graphics/wear-screenshots/ must have dimensions between [320,3840]x[320,3840].
appFolder
: The folder where the source is. Default "app"
, which is the most common one, so an ./app/src/[sourceSet]/play directory exists on the root.
For example, specifying "android/app" means that an ./android/app/src/[sourceSet]/play directory exists on the root.
ignore
: A comma-separated list of checks to ignore. Default is an empty list (nothing is ignored). The checks must be specified with the id above, for example: Changelog too large, title.txt too large
will not report nor fail if the changelogs or the title are longer than required (they will still be logged though). Note that if you want to ignore all errors you can also set the action with continue-on-error: true
.
Minimum action sample
name: Validate Triple-T store files
# template from https://github.com/TrianguloY/action-validate-Triple-T
on:
# Run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
validation:
runs-on: ubuntu-latest
steps:
- name: Download project files
uses: actions/checkout@v3
- name: Validate Triple-T files
uses: TrianguloY/action-validate-Triple-T@v1
Complete sample
name: Validate Triple-T store files
# template from https://github.com/TrianguloY/action-validate-Triple-T
on:
# run this worflow on branch push
push:
# run this worflow on pull requests
pull_request:
# Run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
validation:
runs-on: ubuntu-latest
steps:
- name: Download project files
uses: actions/checkout@v3
- name: Validate Triple-T files
uses: TrianguloY/action-validate-Triple-T@v1
continue-on-error: true
with:
appFolder: 'code/app'
ignore: 'Changelog too large, title.txt too large'