Update README.md #51
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: BuildTest | |
on: | |
push: | |
branches: | |
- main # Run the action when pushing to the main branch | |
pull_request: | |
branches: | |
- main # Run the action when a PR is opened against main branch | |
workflow_dispatch: # Trigger the workflow on pull requests to the main branch | |
jobs: | |
test: | |
runs-on: macos-latest # Use the latest macOS runner, required for Xcode | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 # Checkout the repository code | |
- name: Set up Xcode | |
run: sudo xcode-select -switch /Applications/Xcode_16.0.app # Specify the Xcode version if needed | |
- name: Run tests | |
working-directory: ./mobile-client | |
run: xcodebuild test -scheme ToDoList -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.0' -derivedDataPath DerivedData -enableCodeCoverage YES -skipMacroValidation |