GitHub Action
Validate Fastlane Supply Metadata
A Github Action to statically validate Fastlane metadata for Android (supply) using a simple validation logic written in Golang.
- Zero config
- Checks title, short description, full description and changelog texts
- Checks promo images
- Checks screenshots
- Tiny docker image ~800KB
- Can be used without GitHub actions
In one of my Android projects, I was
facing a situation where other developers would translate Fastlane metadata for
the Android app. There was no way to check its validity on the new Pull Requests.
I even created a dedicated CI job to run fastlane supply
with validate_only
option.
To run this job for PRs, I would need to expose the service account key
for accessing the Play Store which is a major security flaw.
This action uses a docker image to validate Fastlane's metadata. The docker image is built from the Go code in this repository. The Go code is ~300 lines of validation logic to test all the files in Fastlane metadata against the constraints from the Play Store listing.
on: [pull_request]
jobs:
# required to run on Linux because this is a docker container action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ashutoshgngwr/validate-fastlane-supply-metadata@v1
with:
fastlaneDir: ./fastlane # optional. default is './fastlane'
The GitHub action relies on a docker image which can be used directly.
docker run --rm --workdir /app --mount type=bind,source="$(pwd)",target=/app \
ashutoshgngwr/validate-fastlane-supply-metadata:v1 -help