Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify project and add watchOS support. #528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run tests
on: [push]
# on:
# push:
# branches: [$default-branch]
# pull_request:
# branches: [$default-branch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test_macOS:
name: Build and Test on macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Show current version of Xcode
run: xcodebuild -version
- name: Test
run: |
make ci
xcodebuild test -scheme "Cuckoo-macOS" -workspace Cuckoo.xcworkspace \
| xcbeautify --renderer github-actions

test_iOS:
name: Build and Test on iOS simulator
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Show current version of Xcode
run: xcodebuild -version
- name: Test
run: |
make ci
xcodebuild test -scheme "Cuckoo-iOS" -workspace Cuckoo.xcworkspace \
-destination "platform=iOS Simulator,name=iPhone 16,OS=18.0" \
| xcbeautify -–renderer github-actions
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ init:

# Generate Cuckoo workspace.
make dev

ci:
# Install Tuist if not present.
if ! command -v tuist &> /dev/null; then curl -Ls https://install.tuist.io | bash; fi

# Create generated mocks file which will be populated later.
touch "Tests/Swift/Generated/GeneratedMocks.swift"

# Generate Cuckoo workspace.
make dev
Loading