Improve flagging UI #20
Workflow file for this run
This file contains 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: 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 }} |