Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chunta authored Oct 24, 2024
1 parent de719e7 commit c4ddfe9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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@v3 # 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=17.5' -derivedDataPath DerivedData -enableCodeCoverage YES -skipMacroValidation

0 comments on commit c4ddfe9

Please sign in to comment.