Skip to content

docs: fix ios.yml

docs: fix ios.yml #4

Workflow file for this run

name: iOS Multiple Projects Build and Test Workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test-module03:
name: Build and Test Module03
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Test Module03 Project
run: |
xcodebuild build-for-testing -project Module03/weatherfinal_proj/weather_proj.xcodeproj -scheme weather_proj -destination 'platform=iOS Simulator,name=iPhone 15'
xcodebuild test-without-building -project Module03/weatherfinal_proj/weather_proj.xcodeproj -scheme weather_proj -destination 'platform=iOS Simulator,name=iPhone 15'
- name: Upload Module03 Build Artifacts
uses: actions/upload-artifact@v3
with:
name: module03-build-artifacts
path: Module03/YourBuildOutputPath/*
build-and-test-weatherplus:
name: Build and Test WeatherPlus
runs-on: macos-latest
needs: build-and-test-module03
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Test WeatherPlus Project
run: |
xcodebuild build-for-testing -project WeatherApp/weatherplusproj/weather_proj.xcodeproj -scheme weather_proj -destination 'platform=iOS Simulator,name=iPhone 15'
xcodebuild test-without-building -project WeatherApp/weatherplusproj/weather_proj.xcodeproj -scheme weather_proj -destination 'platform=iOS Simulator,name=iPhone 15'
- name: Upload WeatherPlus Build Artifacts
uses: actions/upload-artifact@v3
with:
name: weatherplus-build-artifacts
path: WeatherApp/weatherplusproj/YourBuildOutputPath/*