File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run linter and unit tests
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ # Allows you to run this workflow manually from the Actions tab
10+ workflow_dispatch :
11+
12+ jobs :
13+ build :
14+
15+ runs-on : macos-12
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+
20+ - name : Set Xcode version
21+ run : |
22+ ls -l /Applications | grep 'Xcode'
23+ sudo xcode-select -s /Applications/Xcode_14.0.1.app
24+
25+ - name : Lint code using SwiftLint
26+ run : swiftlint --strict --reporter github-actions-logging
27+
28+ - name : Build iOS
29+ run : |
30+ xcodebuild -scheme YComponentBrowser -sdk iphonesimulator16.0 -destination 'platform=iOS Simulator,name=iPhone 14' build-for-testing
31+
32+ - name : Run tests iOS
33+ run : |
34+ xcodebuild -scheme YComponentBrowser -sdk iphonesimulator16.0 -destination 'platform=iOS Simulator,name=iPhone 14' test-without-building
35+ - name : Build tvOS
36+ run : |
37+ xcodebuild -scheme YComponentBrowser -sdk appletvsimulator16.0 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation)' build-for-testing
38+
39+ - name : Run tests tvOS
40+ run : |
41+ xcodebuild -scheme YComponentBrowser -sdk appletvsimulator16.0 -destination 'platform=tvOS Simulator,name=Apple TV 4K (2nd generation)' test-without-building
You can’t perform that action at this time.
0 commit comments