Skip to content

Improve flagging UI #17

Improve flagging UI

Improve flagging UI #17

Workflow file for this run

name: iOS starter workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build and Test Minesweeper
runs-on: macos-latest
env:
project: "Minesweeper.xcodeproj"
scheme: "Minesweeper"
destination: "platform=iOS Simulator,name=iPhone 14"
test_plan: "UnitTests"
result_bundle_path: "MinesweeperUnitTests.xcresult"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
xcodebuild build-for-testing -scheme "$scheme" -project "$project" -destination "$destination"
- name: Test
run: |
xcodebuild test-without-building -scheme "$scheme" -project "$project" -destination "$destination" -testPlan "$test_plan" -resultBundlePath "$result_bundle_path"
- name: "Upload test results"
uses: actions/upload-artifact@v3
# Only keep the test result bundles when the tests have failed
if: ${{ failure() }}
with:
name: Minesweeper-test-results
path: ${{ env.result_bundle_path }}