Skip to content

Create test.yml

Create test.yml #4

Workflow file for this run

name: Swift CI
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
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: swift-package-dependencies-check
working-directory: mobile-client
uses: MarcoEidinger/[email protected]

Check failure on line 24 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Swift CI

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 24, Col: 9): Unexpected value 'uses' .github/workflows/test.yml (Line: 22, Col: 9): Required property is missing: run
#- name: Set up dependencies
# working-directory: mobile-client
# run: swift package resolve # Resolve any Swift Package Manager dependencies
- name: Run tests
working-directory: mobile-client
run: xcodebuild test -scheme ToDoList -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.0'