From 5861de37f0e1028aa62d37a7de7b5a3efbaf306f Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Fri, 23 Sep 2022 08:54:10 +0200 Subject: [PATCH] ci: Readd cache for UI tests Add cache for benchmarks and saucelabs UI tests again, but don't skip compiling. --- .github/workflows/benchmarking.yml | 15 +++++++++++++++ .github/workflows/saucelabs-UI-tests.yml | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/.github/workflows/benchmarking.yml b/.github/workflows/benchmarking.yml index 365bcc04ce7..e1e899ac599 100644 --- a/.github/workflows/benchmarking.yml +++ b/.github/workflows/benchmarking.yml @@ -30,6 +30,21 @@ jobs: - name: Install SentryCli run: brew install getsentry/tools/sentry-cli - run: git apply ./scripts/set-device-tests-environment.patch + - name: Cache iOS-Swift App and dSYM build products + id: ios-swift-cache + uses: actions/cache@v3 + with: + path: | + DerivedData/Build/Products/Debug-iphoneos/iOS-Swift.app.dSYM + DerivedData/Build/Products/Debug-iphoneos/iOS-Swift.app + key: ios-swift-for-ui-testing-cache-key-${{ hashFiles('Samples/iOS-Swift/iOS-Swift/**') }} + - name: Cache iOS-Swift UI Test Runner App build product + id: ios-swift-benchmark-runner-cache + uses: actions/cache@v3 + with: + path: | + DerivedData/Build/Products/Debug-iphoneos/PerformanceBenchmarks-Runner.app + key: ios-swift-for-ui-testing-cache-key-${{ hashFiles('Samples/iOS-Swift/PerformanceBenchmarks/**') }} - run: fastlane build_ios_swift_for_tests env: APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} diff --git a/.github/workflows/saucelabs-UI-tests.yml b/.github/workflows/saucelabs-UI-tests.yml index 15cb5f3b402..1a8bd4b42e9 100644 --- a/.github/workflows/saucelabs-UI-tests.yml +++ b/.github/workflows/saucelabs-UI-tests.yml @@ -37,6 +37,21 @@ jobs: - name: Install SentryCli run: brew install getsentry/tools/sentry-cli - run: git apply ./scripts/set-device-tests-environment.patch + - name: Cache iOS-Swift App and dSYM build products + id: ios-swift-cache + uses: actions/cache@v3 + with: + path: | + DerivedData/Build/Products/Debug-iphoneos/iOS-Swift.app.dSYM + DerivedData/Build/Products/Debug-iphoneos/iOS-Swift.app + key: ios-swift-for-ui-testing-cache-key-${{ hashFiles('Samples/iOS-Swift/iOS-Swift/**') }}-Xcode-${{ matrix.xcode }} + - name: Cache iOS-Swift UI Test Runner App build product + id: ios-swift-uitest-runner-cache + uses: actions/cache@v3 + with: + path: | + DerivedData/Build/Products/Debug-iphoneos/iOS-SwiftUITests-Runner.app + key: ios-swift-for-ui-testing-cache-key-${{ hashFiles('Samples/iOS-Swift/iOS-SwiftUITests/**') }}-Xcode-${{ matrix.xcode }} - run: fastlane build_ios_swift_for_tests env: APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}