diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index f78b30b3d..b67de8f0b 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -22,25 +22,18 @@ jobs: run: | xcodebuild -scheme 'DarockBili Watch App' -configuration Debug -archivePath DarockBili_Debug.xcarchive clean archive CODE_SIGN_IDENTITY="" xcodebuild -scheme 'DarockBili Watch App' -configuration Release -archivePath DarockBili_Release.xcarchive clean archive CODE_SIGN_IDENTITY="" - - - name: Export IPA - run: | - mkdir ./Export_Debug - mkdir ./Export_Release - xcodebuild -exportArchive -archivePath DarockBili_Debug.xcarchive -exportPath ./Export_Debug -exportOptionsPlist ExportOptions.plist - xcodebuild -exportArchive -archivePath DarockBili_Release.xcarchive -exportPath ./Export_Release -exportOptionsPlist ExportOptions.plist - - - name: Upload Debug IPA + + - name: Upload Debug Archive uses: actions/upload-artifact@v3 with: - name: Debug.ipa - path: ./Export_Debug/DarockBili.ipa + name: Debug XCArchive + path: ./DarockBili_Debug.xcarchive - - name: Upload Release IPA + - name: Upload Release Archive uses: actions/upload-artifact@v3 with: - name: Release.ipa - path: ./Export_Release/DarockBili.ipa + name: Release XCArchive + path: ./DarockBili_Release.xcarchive build_for_testing: runs-on: macos-13 @@ -74,5 +67,3 @@ jobs: with: name: Test Attachments path: ./Caches/DerivedData/Logs/Test - - diff --git a/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift b/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift index a899cb9b1..1aeccd6f3 100644 --- a/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift +++ b/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift @@ -4,6 +4,16 @@ // // Created by WindowsMEMZ on 2023/7/27. // +//===----------------------------------------------------------------------===// +// +// This source file is part of the MeowBili open source project +// +// Copyright (c) 2023 Darock Studio and the MeowBili project authors +// Licensed under GNU General Public License v3 +// +// See https://darock.top/LICENSE.txt for license information +// +//===----------------------------------------------------------------------===// import XCTest @@ -26,7 +36,7 @@ final class DarockBili_Watch_App_UI_Tests: XCTestCase { // UI tests must launch the application that they test. let app = XCUIApplication() app.launch() - + sleep(2) takeScreenshot(of: app, named: "Launch") app.buttons["SuggestVideo"].firstMatch.tap() sleep(1)