forked from Swinject/Swinject
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.44 KB
/
Project Testing.yml
File metadata and controls
44 lines (43 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This is the First Workflow for Testing with Github Actions
name: Testing
on:
workflow_dispatch:
env:
PROJECT: Swinject.xcodeproj
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
jobs:
test:
runs-on: macos-15
strategy:
matrix:
include:
- platform-version: iOS
DEST: "OS=18.4,name=iPhone 16"
SCHEME: "Swinject-iOS"
SDK: "iphonesimulator"
ACTION: "test"
PLATFORM: "iOS"
- platform-version: macOS
DEST: "arch=arm64"
SCHEME: "Swinject-macOS"
SDK: "macosx"
ACTION: "test"
PLATFORM: "OSX"
- platform-version: tvOS
DEST: "OS=18.4,name=Apple TV 4K"
SCHEME: "Swinject-tvOS"
SDK: "appletvsimulator"
ACTION: "test"
PLATFORM: "tvOS"
- platform-version: watchOS
DEST: "OS=11.4,name=Apple Watch Series 10 - 46mm"
SCHEME: "Swinject-watchOS"
SDK: "watchsimulator"
ACTION: "build"
PLATFORM: "watchOS"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Testing Framework for - "${{ matrix.PLATFORM }}"
run: xcodebuild "${{ matrix.ACTION }}" -project "${{ env.PROJECT }}" -scheme "${{ matrix.SCHEME }}" -sdk "${{ matrix.SDK }}" -destination "${{ matrix.DEST }}" -configuration Release ENABLE_TESTABILITY=YES | xcpretty
shell: bash