From 2a73ef4ef210943d31a38acae9b27528e93cb39f Mon Sep 17 00:00:00 2001 From: Ilias Pavlidakis Date: Thu, 14 Nov 2024 16:23:58 +0200 Subject: [PATCH] Update --- .github/actions/bootstrap/action.yml | 6 +- .github/workflows/smoke-checks.yml | 128 +++++++++++++-------------- 2 files changed, 66 insertions(+), 68 deletions(-) diff --git a/.github/actions/bootstrap/action.yml b/.github/actions/bootstrap/action.yml index a5227dfb3..91c952d6d 100644 --- a/.github/actions/bootstrap/action.yml +++ b/.github/actions/bootstrap/action.yml @@ -28,10 +28,8 @@ runs: - uses: ./.github/actions/ruby-cache - uses: irgaly/xcode-cache@v1 with: - key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.shat }} - restore-keys: - xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }} - xcode-cache-deriveddata-${{ github.workflow }}-${{ github.event.number }} + key: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }} + restore-keys: xcode-cache-deriveddata-${{ github.workflow }}-${{ github.sha }} deriveddata-directory: derived_data sourcepackages-directory: spm_cache - uses: ./.github/actions/python-cache diff --git a/.github/workflows/smoke-checks.yml b/.github/workflows/smoke-checks.yml index 07bea9fa5..aa7ba4a2e 100644 --- a/.github/workflows/smoke-checks.yml +++ b/.github/workflows/smoke-checks.yml @@ -82,71 +82,71 @@ jobs: fastlane/test_output/logs/*/Diagnostics/**/*.txt fastlane/test_output/logs/*/Diagnostics/simctl_diagnostics/DiagnosticReports/* - # test-swiftui-debug: - # name: Test SwiftUI (Debug) - # runs-on: macos-14 - # needs: test-llc-debug - # if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'false' }} - # env: - # GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR - # steps: - # - uses: actions/checkout@v4.1.1 - # - uses: ./.github/actions/bootstrap - # env: - # INSTALL_YEETD: true - # SKIP_MINT_BOOTSTRAP: true - # SKIP_BREW_BOOTSTRAP: true - # - name: Run UI Tests (Debug) - # run: bundle exec fastlane test_swiftui device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.swiftui_snapshots }} - # timeout-minutes: 40 - # env: - # XCODE_VERSION: "15.2" # the most stable pair of Xcode - # IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS - # - name: Parse xcresult - # if: failure() - # run: | - # brew install chargepoint/xcparse/xcparse - # xcparse screenshots fastlane/test_output/StreamVideoSwiftUI.xcresult fastlane/test_output/snapshots --test - # - uses: actions/upload-artifact@v4 - # if: failure() - # with: - # name: SwiftUI Test Data - # path: | - # ~/Library/Logs/scan - # fastlane/test_output/snapshots + test-swiftui-debug: + name: Test SwiftUI (Debug) + runs-on: macos-14 + needs: test-llc-debug + if: ${{ github.event_name != 'push' && github.event.inputs.swiftui_snapshots != 'false' }} + env: + GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR + steps: + - uses: actions/checkout@v4.1.1 + - uses: ./.github/actions/bootstrap + env: + INSTALL_YEETD: true + SKIP_MINT_BOOTSTRAP: true + SKIP_BREW_BOOTSTRAP: true + - name: Run UI Tests (Debug) + run: bundle exec fastlane test_swiftui device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.swiftui_snapshots }} + timeout-minutes: 40 + env: + XCODE_VERSION: "15.2" # the most stable pair of Xcode + IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS + - name: Parse xcresult + if: failure() + run: | + brew install chargepoint/xcparse/xcparse + xcparse screenshots fastlane/test_output/StreamVideoSwiftUI.xcresult fastlane/test_output/snapshots --test + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: SwiftUI Test Data + path: | + ~/Library/Logs/scan + fastlane/test_output/snapshots - # test-uikit-debug: - # name: Test UIKit (Debug) - # runs-on: macos-14 - # needs: test-swiftui-debug - # if: ${{ github.event_name != 'push' && github.event.inputs.uikit_snapshots != 'false' }} - # env: - # GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR - # steps: - # - uses: actions/checkout@v4.1.1 - # - uses: ./.github/actions/bootstrap - # env: - # INSTALL_YEETD: true - # SKIP_MINT_BOOTSTRAP: true - # SKIP_BREW_BOOTSTRAP: true - # - name: Run UI Tests (Debug) - # run: bundle exec fastlane test_uikit device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.uikit_snapshots }} - # timeout-minutes: 40 - # env: - # XCODE_VERSION: "15.2" # the most stable pair of Xcode - # IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS - # - name: Parse xcresult - # if: failure() - # run: | - # brew install chargepoint/xcparse/xcparse - # xcparse screenshots fastlane/test_output/StreamVideoUIKit.xcresult fastlane/test_output/snapshots --test - # - uses: actions/upload-artifact@v4 - # if: failure() - # with: - # name: UIKit Test Data - # path: | - # ~/Library/Logs/scan - # fastlane/test_output/snapshots + test-uikit-debug: + name: Test UIKit (Debug) + runs-on: macos-14 + needs: test-swiftui-debug + if: ${{ github.event_name != 'push' && github.event.inputs.uikit_snapshots != 'false' }} + env: + GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR + steps: + - uses: actions/checkout@v4.1.1 + - uses: ./.github/actions/bootstrap + env: + INSTALL_YEETD: true + SKIP_MINT_BOOTSTRAP: true + SKIP_BREW_BOOTSTRAP: true + - name: Run UI Tests (Debug) + run: bundle exec fastlane test_uikit device:"${{ env.IOS_SIMULATOR_DEVICE }}" record:${{ github.event.inputs.uikit_snapshots }} + timeout-minutes: 40 + env: + XCODE_VERSION: "15.2" # the most stable pair of Xcode + IOS_SIMULATOR_DEVICE: "iPhone 15 Pro (17.2)" # and iOS + - name: Parse xcresult + if: failure() + run: | + brew install chargepoint/xcparse/xcparse + xcparse screenshots fastlane/test_output/StreamVideoUIKit.xcresult fastlane/test_output/snapshots --test + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: UIKit Test Data + path: | + ~/Library/Logs/scan + fastlane/test_output/snapshots # automated-code-review: # name: Automated Code Review