Skip to content

Commit

Permalink
Test build
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Oct 1, 2023
1 parent 004e102 commit 211be55
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 151 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/emerge.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: Size Check
# name: Size Check

on:
pull_request:
branches:
- '**'
paths-ignore:
- 'docusaurus/**'
- 'README.md'
- 'CHANGELOG.md'
# on:
# pull_request:
# branches:
# - '**'
# paths-ignore:
# - 'docusaurus/**'
# - 'README.md'
# - 'CHANGELOG.md'

workflow_dispatch:
# workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI
# env:
# HOMEBREW_NO_INSTALL_CLEANUP: 1 # Disable cleanup for homebrew, we don't need it on CI

jobs:
upload--build:
name: Upload Build to Emerge
runs-on: macos-13
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUM: ${{ github.event.number }}
GITHUB_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
GITHUB_BASE_SHA: ${{ github.event.pull_request.base.sha }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_TOKEN }}
steps:
- name: Install Bot SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
- uses: ./.github/actions/ruby-cache
- name: Run match_me
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
run: bundle exec fastlane match_me
- name: Emerge SwiftUI Demo App
run: bundle exec fastlane emerge_swiftui
- name: Emerge UIKit Demo App
run: bundle exec fastlane emerge_uikit
# jobs:
# upload--build:
# name: Upload Build to Emerge
# runs-on: macos-13
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_PR_NUM: ${{ github.event.number }}
# GITHUB_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
# GITHUB_BASE_SHA: ${{ github.event.pull_request.base.sha }}
# EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_TOKEN }}
# steps:
# - name: Install Bot SSH Key
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
# - uses: actions/[email protected]
# - uses: ./.github/actions/ruby-cache
# - name: Run match_me
# env:
# MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
# APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
# run: bundle exec fastlane match_me
# - name: Emerge SwiftUI Demo App
# run: bundle exec fastlane emerge_swiftui
# - name: Emerge UIKit Demo App
# run: bundle exec fastlane emerge_uikit
174 changes: 87 additions & 87 deletions .github/workflows/smoke-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,74 +64,74 @@ jobs:
derived_data/Build/**/*.xctestrun
derived_data/Build/**/*.framework
test-llc-debug:
name: Test LLC (Debug)
runs-on: macos-13
needs: build-test-app-and-frameworks
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUM: ${{ github.event.number }}
STREAM_VIDEO_SECRET: ${{ secrets.STREAM_VIDEO_SECRET }}
# IOS_SIMULATOR_DEVICE: "iPhone 14 Pro (16.4)" # TODO: delete this line as soon as Xcode 15 is stable on CI
# XCODE_VERSION: "14.3.1" # TODO: delete this line as soon as Xcode 15 is stable on CI
steps:
- uses: actions/[email protected]
with:
fetch-depth: 100
- uses: actions/download-artifact@v3
with:
name: cache-derived-data
path: derived_data/Build/
- uses: ./.github/actions/bootstrap
- uses: ./.github/actions/python-cache
- name: Run LLC Tests (Debug)
run: bundle exec fastlane test device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true
timeout-minutes: 40
- name: Get branch name
id: get_branch_name
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
- name: Run Sonar analysis
run: bundle exec fastlane sonar_upload
env:
BRANCH_NAME: ${{ steps.get_branch_name.outputs.branch }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: "You shall not pass!"
job_name: "Test LLC (Debug)"
fields: message,commit,author,action,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}
if: ${{ github.event_name == 'push' && failure() }}
# test-llc-debug:
# name: Test LLC (Debug)
# runs-on: macos-13
# needs: build-test-app-and-frameworks
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_PR_NUM: ${{ github.event.number }}
# STREAM_VIDEO_SECRET: ${{ secrets.STREAM_VIDEO_SECRET }}
# # IOS_SIMULATOR_DEVICE: "iPhone 14 Pro (16.4)" # TODO: delete this line as soon as Xcode 15 is stable on CI
# # XCODE_VERSION: "14.3.1" # TODO: delete this line as soon as Xcode 15 is stable on CI
# steps:
# - uses: actions/[email protected]
# with:
# fetch-depth: 100
# - uses: actions/download-artifact@v3
# with:
# name: cache-derived-data
# path: derived_data/Build/
# - uses: ./.github/actions/bootstrap
# - uses: ./.github/actions/python-cache
# - name: Run LLC Tests (Debug)
# run: bundle exec fastlane test device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true
# timeout-minutes: 40
# - name: Get branch name
# id: get_branch_name
# run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
# - name: Run Sonar analysis
# run: bundle exec fastlane sonar_upload
# env:
# BRANCH_NAME: ${{ steps.get_branch_name.outputs.branch }}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# - uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# text: "You shall not pass!"
# job_name: "Test LLC (Debug)"
# fields: message,commit,author,action,workflow,job,took
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# MATRIX_CONTEXT: ${{ toJson(matrix) }}
# if: ${{ github.event_name == 'push' && failure() }}

test-swiftui-debug:
name: Test SwiftUI (Debug)
runs-on: macos-13
needs: build-test-app-and-frameworks
if: ${{ github.event_name != 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/bootstrap
- name: Run UI Tests (Debug)
run: bundle exec fastlane test_swiftui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true
timeout-minutes: 40
- name: Parse xcresult
if: failure()
run: |
brew install chargepoint/xcparse/xcparse
xcparse screenshots fastlane/test_output/StreamChatUI.xcresult fastlane/test_output/snapshots --test
- uses: actions/upload-artifact@v3
if: failure()
with:
name: Test Data
path: |
fastlane/test_output/snapshots
# test-swiftui-debug:
# name: Test SwiftUI (Debug)
# runs-on: macos-13
# needs: build-test-app-and-frameworks
# if: ${{ github.event_name != 'push' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_PR_NUM: ${{ github.event.number }}
# steps:
# - uses: actions/[email protected]
# - uses: ./.github/actions/bootstrap
# - name: Run UI Tests (Debug)
# run: bundle exec fastlane test_swiftui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true
# timeout-minutes: 40
# - name: Parse xcresult
# if: failure()
# run: |
# brew install chargepoint/xcparse/xcparse
# xcparse screenshots fastlane/test_output/StreamChatUI.xcresult fastlane/test_output/snapshots --test
# - uses: actions/upload-artifact@v3
# if: failure()
# with:
# name: Test Data
# path: |
# fastlane/test_output/snapshots

# test-uikit-debug:
# name: Test UIKit (Debug)
Expand All @@ -158,26 +158,26 @@ jobs:
# path: |
# fastlane/test_output/snapshots

build-apps:
name: Build Demo Apps
runs-on: macos-13
needs: build-test-app-and-frameworks
if: ${{ github.event_name != 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/[email protected]
- uses: actions/download-artifact@v3
with:
name: cache-derived-data
path: derived_data/Build/
- uses: ./.github/actions/ruby-cache
- uses: ./.github/actions/xcode-cache
- name: Build SwiftUI Demo App
run: bundle exec fastlane build_swiftui_demo
- name: Build UIKit Demo App
run: bundle exec fastlane build_uikit_demo
# build-apps:
# name: Build Demo Apps
# runs-on: macos-13
# needs: build-test-app-and-frameworks
# if: ${{ github.event_name != 'push' }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_PR_NUM: ${{ github.event.number }}
# steps:
# - uses: actions/[email protected]
# - uses: actions/download-artifact@v3
# with:
# name: cache-derived-data
# path: derived_data/Build/
# - uses: ./.github/actions/ruby-cache
# - uses: ./.github/actions/xcode-cache
# - name: Build SwiftUI Demo App
# run: bundle exec fastlane build_swiftui_demo
# - name: Build UIKit Demo App
# run: bundle exec fastlane build_uikit_demo

# test-e2e-debug:
# name: Test E2E UI (Debug)
Expand Down
Loading

0 comments on commit 211be55

Please sign in to comment.