From e334865698835ca981a389e6a0be05ce9f8043f7 Mon Sep 17 00:00:00 2001 From: Morgan Chen Date: Wed, 8 Jan 2025 14:56:32 -0800 Subject: [PATCH] add xcbeautify --- .github/workflows/appcheck.yml | 8 ++++++-- .github/workflows/core.yml | 4 +++- .github/workflows/crashlytics.yml | 8 ++++++-- .github/workflows/database.yml | 4 +++- .github/workflows/firestore.yml | 8 ++++++-- .github/workflows/functions.yml | 8 ++++++-- .github/workflows/installations.yml | 4 +++- .github/workflows/ml-functions.yml | 8 ++++++-- .github/workflows/storage.yml | 8 ++++++-- .github/workflows/vertexai.yml | 4 +++- 10 files changed, 48 insertions(+), 16 deletions(-) diff --git a/.github/workflows/appcheck.yml b/.github/workflows/appcheck.yml index 38c18362..e1db0f5a 100644 --- a/.github/workflows/appcheck.yml +++ b/.github/workflows/appcheck.yml @@ -14,10 +14,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cd appcheck - xcodebuild -project AppCheckSnippets.xcodeproj clean build -scheme AppCheckSnippetsSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project AppCheckSnippets.xcodeproj clean build -scheme AppCheckSnippetsSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} objc-build: @@ -29,9 +31,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build ObjC snippets run: | cd appcheck - xcodebuild -project AppCheckSnippets.xcodeproj clean build -scheme AppCheckSnippetsObjC -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project AppCheckSnippets.xcodeproj clean build -scheme AppCheckSnippetsObjC -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 8c13cb59..644f018c 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -14,10 +14,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cp .github/GoogleService-Info-CI.plist firoptions/FiroptionConfiguration/GoogleService-Info.plist cd firoptions - xcodebuild -project FiroptionConfiguration.xcodeproj clean build -scheme FiroptionConfiguration -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project FiroptionConfiguration.xcodeproj clean build -scheme FiroptionConfiguration -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/crashlytics.yml b/.github/workflows/crashlytics.yml index 2cf9ea47..4c3b982e 100644 --- a/.github/workflows/crashlytics.yml +++ b/.github/workflows/crashlytics.yml @@ -14,10 +14,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cd crashlytics - xcodebuild -project CrashlyticsExample.xcodeproj clean build -scheme CrashlyticsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project CrashlyticsExample.xcodeproj clean build -scheme CrashlyticsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} objc-build: @@ -29,9 +31,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build ObjC snippets run: | cd crashlytics - xcodebuild -project CrashlyticsExample.xcodeproj clean build -scheme CrashlyticsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project CrashlyticsExample.xcodeproj clean build -scheme CrashlyticsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index 2f6b2306..fe3f424c 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -14,9 +14,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build snippets run: | cd database - xcodebuild -project DatabaseReference.xcodeproj clean build -scheme DatabaseReference -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project DatabaseReference.xcodeproj clean build -scheme DatabaseReference -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/firestore.yml b/.github/workflows/firestore.yml index bfcc6798..37d9f810 100644 --- a/.github/workflows/firestore.yml +++ b/.github/workflows/firestore.yml @@ -14,11 +14,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cp .github/GoogleService-Info-CI.plist firestore/swift/firestore-smoketest/GoogleService-Info.plist cd firestore/swift - xcodebuild -project firestore-smoketest.xcodeproj clean build -scheme firestore-smoketest -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project firestore-smoketest.xcodeproj clean build -scheme firestore-smoketest -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} objc-build: @@ -30,10 +32,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build ObjC snippets run: | cp .github/GoogleService-Info-CI.plist firestore/objc/GoogleService-Info.plist cd firestore/objc - xcodebuild -project firestore-smoketest-objc.xcodeproj clean build -scheme firestore-smoketest-objc -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project firestore-smoketest-objc.xcodeproj clean build -scheme firestore-smoketest-objc -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/functions.yml b/.github/workflows/functions.yml index 61bca69e..fe0cd5e3 100644 --- a/.github/workflows/functions.yml +++ b/.github/workflows/functions.yml @@ -14,10 +14,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cd functions - xcodebuild -project FunctionsExample.xcodeproj clean build -scheme FunctionsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project FunctionsExample.xcodeproj clean build -scheme FunctionsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} objc-build: @@ -29,9 +31,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build ObjC snippets run: | cd functions - xcodebuild -project FunctionsExample.xcodeproj clean build -scheme FunctionsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project FunctionsExample.xcodeproj clean build -scheme FunctionsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/installations.yml b/.github/workflows/installations.yml index 1583f142..8286a823 100644 --- a/.github/workflows/installations.yml +++ b/.github/workflows/installations.yml @@ -14,9 +14,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cd installations/ - xcodebuild -project InstallationsSnippets.xcodeproj clean build -scheme InstallationsSnippets -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project InstallationsSnippets.xcodeproj clean build -scheme InstallationsSnippets -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} \ No newline at end of file diff --git a/.github/workflows/ml-functions.yml b/.github/workflows/ml-functions.yml index 4fb478db..f28a921d 100644 --- a/.github/workflows/ml-functions.yml +++ b/.github/workflows/ml-functions.yml @@ -14,10 +14,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cd ml-functions - xcodebuild -project MLFunctionsExample.xcodeproj clean build -scheme MLFunctionsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project MLFunctionsExample.xcodeproj clean build -scheme MLFunctionsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} objc-build: @@ -29,9 +31,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build ObjC snippets run: | cd ml-functions - xcodebuild -project MLFunctionsExample.xcodeproj clean build -scheme MLFunctionsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project MLFunctionsExample.xcodeproj clean build -scheme MLFunctionsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/storage.yml b/.github/workflows/storage.yml index 28416620..73949ab2 100644 --- a/.github/workflows/storage.yml +++ b/.github/workflows/storage.yml @@ -14,11 +14,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | sudo xcode-select -switch /Applications/Xcode_16.1.app/Contents/Developer cd storage - xcodebuild -project StorageReference.xcodeproj clean build -scheme StorageReferenceSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project StorageReference.xcodeproj clean build -scheme StorageReferenceSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} objc-build: @@ -30,10 +32,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build ObjC snippets run: | sudo xcode-select -switch /Applications/Xcode_16.1.app/Contents/Developer cd storage - xcodebuild -project StorageReference.xcodeproj clean build -scheme StorageReference -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO + xcodebuild -project StorageReference.xcodeproj clean build -scheme StorageReference -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }} diff --git a/.github/workflows/vertexai.yml b/.github/workflows/vertexai.yml index f5757908..30b61ab6 100644 --- a/.github/workflows/vertexai.yml +++ b/.github/workflows/vertexai.yml @@ -14,9 +14,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@master + - name: Install deps + run: brew install xcbeautify - name: Build Swift snippets run: | cd vertexai - xcodebuild -project VertexAISnippets.xcodeproj -scheme VertexAISnippets clean build -destination "${destination}" CODE_SIGNING_REQUIRED=NO + xcodebuild -project VertexAISnippets.xcodeproj -scheme VertexAISnippets clean build -destination "${destination}" CODE_SIGNING_REQUIRED=NO | xcbeautify --renderer github-actions env: destination: ${{ matrix.destination }}