Skip to content

Implement WeatherApp MVVM architecture #1

Implement WeatherApp MVVM architecture

Implement WeatherApp MVVM architecture #1

Workflow file for this run

name: iOS CI
on:
push:
branches:
- main
- "codex/**"
pull_request:
jobs:
test-and-analyze:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Run tests with coverage
run: |
xcodebuild test \
-project WeatherApp.xcodeproj \
-scheme WeatherApp \
-destination 'platform=iOS Simulator,name=iPhone 16' \
-enableCodeCoverage YES \
-resultBundlePath TestResults.xcresult
- name: Run static analysis
run: |
xcodebuild analyze \
-project WeatherApp.xcodeproj \
-scheme WeatherApp \
-destination 'platform=iOS Simulator,name=iPhone 16'
- name: Export coverage report
run: |
xcrun xccov view --report TestResults.xcresult > coverage.txt
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: weatherapp-coverage
path: coverage.txt