GT-2159 translate account activity using app lang #2906
Workflow file for this run
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
name: Build App | |
on: | |
push: | |
branches: [ develop, master, feature/* ] | |
pull_request: | |
branches: [ develop, master, feature/* ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-13 | |
env: | |
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Select Xcode Version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '14.2' | |
# Required for KotlinMultiplatform | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version-file: ".java-version" | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Cache Cocoapods | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cocoapods/repos | |
key: ${{ runner.os }}-cocoapods-${{ github.sha }} | |
restore-keys: ${{ runner.os }}-cocoapods- | |
- name: Cache Konan | |
uses: actions/cache@v4 | |
with: | |
path: ~/.konan | |
key: ${{ runner.os }}-konan-${{ github.sha }} | |
restore-keys: ${{ runner.os }}-konan- | |
- name: Pod install | |
run: bundle exec pod install --repo-update | |
- name: Run UITests | |
run: bundle exec fastlane cru_shared_lane_run_tests scheme:GodTools-UITests | |
- name: Run Tests and Generate Code Coverage Report (.xcresult) | |
run: bundle exec fastlane cru_shared_lane_run_tests output_directory:fastlane_scan_output_directory result_bundle:true | |
- name: Upload Xcode Code Coverage Report to CodeCov | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
xcode: true | |
xcode_archive_path: /Users/runner/work/godtools-swift/godtools-swift/fastlane_scan_output_directory/GodTools-Production.xcresult | |
- name: Configure AWS credentials | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_IAM_ONESKY_ROLE_ARN }} | |
aws-region: us-east-1 | |
- name: Import OneSky Keys | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: dkershner6/aws-ssm-getparameters-action@v2 | |
with: | |
parameterPairs: | | |
/shared/onesky/PUBLIC_KEY = ONESKY_PUBLIC_KEY, | |
/shared/onesky/SECRET_KEY = ONESKY_SECRET_KEY | |
- name: Download And Commit Latest OneSky Localizations | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: bundle exec fastlane cru_shared_lane_download_and_commit_latest_one_sky_localizations | |
- name: Import App Store Connect API Key | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
env: | |
APP_STORE_CONNECT_API_JSON_PAYLOAD: ${{ secrets.APP_STORE_CONNECT_API_JSON_PAYLOAD }} | |
run: echo $APP_STORE_CONNECT_API_JSON_PAYLOAD > fastlane/AppleAppStoreApi.json | |
- name: Increment Xcode Project Build Number | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: bundle exec fastlane cru_shared_lane_increment_xcode_project_build_number | |
- name: Build And Deploy For TestFlight Release | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
env: | |
MATCH_GIT_BASIC_AUTHORIZATION_PAT: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION_PAT }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
run: bundle exec fastlane cru_shared_lane_build_and_deploy_for_testflight_release is_running_in_ci:true | |
- name: Push Commits To Remote | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
run: git push | |
- name: Archive XCode Logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: xcode-logs | |
path: "/Users/runner/Library/Developer/Xcode/DerivedData/Logs/godtools-*/**" | |
- name: Archive Fastlane Gym Logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: fastlane-gym-logs | |
path: "/Users/runner/Library/Logs/gym/godtools-*/**" |