Template for Github Actions. Examples
-
install
ruby 3.1.2
or relevant -
bundle init
- install Gemfile and gems -
bundle install
- installs all gems- Fastlane
- Danger
- Fastlane Plugins
bundle lock --add-platform x86_64-linux
- just for ubuntu runsbundle lock --add-platform x86_64-darwin-19
- just for macos runs
bundle exec danger init
- CREATING A BOT ACCOUNT FOR DANGER TO USE
- SETTING UP AN ACCESS TOKEN
DANGER_GITHUB_API_TOKEN
- Setup instructions Make fine-grained tokens https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/ For open source in security reasons no token setup
Permissions for token:
- PR - read/write
- Content - Read access to issues and metadata
Additional file check.rb
added for logic purpose.
To run test check_scpec.rb
use following code bundle exec rspec ./danger
require rspec at Gemfile
- Plugin
gem 'danger-xcov'
SSH_PRIVATE_KEY
- secret with your private key for cloning private repos. Instructions for creating key.
OUTPUT_DIRECTORY
- ipa output directory. Usually uses Gymfile output directory param.TEST_OUTPUT_DIRECTORY
- test artefact output directory. Usually uses Scanfile output directory param.FASTLANE_XCODEBUILD_SETTINGS_RETRIES
- number of build retries. Usually 10 is enough.
MATCH_GIT_BASIC_AUTHORIZATION
- a basic authorization header to access the git repo (e.g.: access via HTTPS, GitHub Actions, etc), usually a string in Base64MATCH_PASSWORD
- Your encryption password as secret environment variableKEYCHAIN_NAME
- Keychain nameKEYCHAIN_PASSWORD
- Keychain passwordAPP_STORE_CONNECT_API_KEY_ISSUER_ID
- The issuer IDAPP_STORE_CONNECT_API_KEY_KEY_ID
- The key IDAPP_STORE_CONNECT_API_KEY_KEY
- The content of the key p8 file
FIREBASE_APP
FIREBASE_TOKEN
- Auth token generated using the Firebase CLI's login:ci commandFIREBASEAPPDISTRO_APP
- Your app's Firebase App ID. You can find the App ID in the Firebase console, on the General Settings pageFIREBASEAPPDISTRO_GROUPS
- The group aliases used for distribution, separated by commasFIREBASEAPPDISTRO_IPA_PATH
- Path to your IPA file. Optional if you use the gym or xcodebuild actionGOOGLE_SERVICES_INFO_PLIST_PATH
- Path to your GoogleService-Info.plist file, relative to the archived product path
APP_STORE_CONNECT_API_KEY_ISSUER_ID
- The issuer IDAPP_STORE_CONNECT_API_KEY_KEY_ID
- The key IDAPP_STORE_CONNECT_API_KEY_KEY
- The content of the key p8 fileIPA_OUTPUT_PATH
- Path for ipa
FL_UPLOAD_SYMBOLS_TO_CRASHLYTICS_DSYM_PATH
- Path to the DSYM file or zip to uploadFL_UPLOAD_SYMBOLS_TO_CRASHLYTICS_BINARY_PATH
- The path to the upload-symbols file of the Fabric app
- https://github.com/webfactory/ssh-agent
- Google https://github.com/google-github-actions
- AWS https://github.com/aws-actions
- Github https://github.com/actions/
- Stale https://github.com/actions/stale
- Labeler https://github.com/actions/labeler
- TODO Issue https://github.com/atlassian/gajira-todo