Talk view redesign #80
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| XCODE_VERSION: '26' | |
| XCODE_PROJECT: "HackerTube.xcodeproj" | |
| SCHEME: "HackerTube" | |
| TEST_PLAN: UnitTests | |
| TEST_RESULT_BUNDLE: "TestResults.xcresult" | |
| # iOS Simulator configuration | |
| TEST_PLATFORM: 'iOS Simulator' | |
| TEST_DEVICE_TYPE: 'iPhone 16' | |
| jobs: | |
| build: | |
| name: Build and Test on iOS Simulator | |
| runs-on: macos-latest | |
| env: | |
| TEST_DEVICE_NAME: 'TestDevice' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: ${{ env.XCODE_VERSION }} | |
| - name: Create iOS Simulator | |
| run: | | |
| xcrun simctl create "${{ env.TEST_DEVICE_NAME }}" "${{ env.TEST_DEVICE_TYPE }}" | |
| - name: Test | |
| run: | | |
| xcodebuild test \ | |
| -project "${{ env.XCODE_PROJECT }}" \ | |
| -scheme ${{ env.SCHEME }} \ | |
| -testPlan "${{ env.TEST_PLAN }}" \ | |
| -resultBundlePath "${{ env.TEST_RESULT_BUNDLE }}" \ | |
| -destination "platform=${{ env.TEST_PLATFORM }},name=${{ env.TEST_DEVICE_NAME }}" | |
| - name: Upload test result bundle | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ failure() }} | |
| with: | |
| name: ${{ env.SCHEME }}-${{ env.TEST_PLAN }}-${{ github.sha }}.xcresult | |
| path: ${{ env.TEST_RESULT_BUNDLE }} |