-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
87 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idname | ||
name: Build | ||
|
||
on: [pull_request, push, workflow_dispatch] | ||
on: [workflow_call] | ||
|
||
jobs: | ||
carthage: | ||
|
@@ -12,4 +11,23 @@ jobs: | |
- uses: AckeeCZ/[email protected] | ||
- name: Build | ||
run: carthage build --no-skip-current --cache-builds --use-xcframeworks | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: Carthage | ||
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-carthage- | ||
spm: | ||
name: SPM | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: AckeeCZ/[email protected] | ||
- name: Build | ||
run: swift build -c release | ||
- uses: actions/cache@v3 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: PR | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/tests.yml | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,56 @@ | ||
name: Tests | ||
|
||
on: [pull_request, push] | ||
on: [workflow_call] | ||
|
||
jobs: | ||
tests: | ||
name: Run tests | ||
xcodebuild: | ||
name: Xcodebuild | ||
runs-on: macos-13 | ||
env: | ||
IOS_DEVICE: iPhone 15 Pro Max | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: AckeeCZ/[email protected] | ||
- name: Run iOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories-iOS -resultBundlePath Tests-iOS.xcresult -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 15 Pro Max,OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty | ||
- name: iOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories -resultBundlePath Tests-iOS.xcresult -sdk iphonesimulator -destination "platform=iOS Simulator,name=$IOS_DEVICE,OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: Tests-iOS.xcresult | ||
path: Tests-iOS.xcresult | ||
- name: Run macOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategoriesCore -resultBundlePath Tests-macOS.xcresult -destination 'platform=OS X,arch=x86_64' | xcpretty | ||
- name: iOS responder tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories -resultBundlePath Tests-iOS-Responder.xcresult -sdk iphonesimulator -destination "platform=iOS Simulator,name=$IOS_DEVICE,OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: Tests-iOS-Responder.xcresult | ||
path: Tests-iOS-Responder.xcresult | ||
- name: macOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories -resultBundlePath Tests-macOS.xcresult -destination 'platform=OS X,arch=x86_64' | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: Tests-macOS.xcresult | ||
path: Tests-macOS.xcresult | ||
path: Tests-macOS.xcresult | ||
- name: watchOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories -resultBundlePath Tests-watchOS.xcresult -sdk watchsimulator -destination "platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm),OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: Tests-watchOS.xcresult | ||
path: Tests-watchOS.xcresult | ||
- name: tvOS tests | ||
run: set -o pipefail && xcodebuild test -scheme ACKategories -resultBundlePath Tests-tvOS.xcresult -sdk appletvsimulator -destination "platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=latest" ONLY_ACTIVE_ARCH=YES | xcpretty | ||
- uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: Tests-tvOS.xcresult | ||
path: Tests-tvOS.xcresult | ||
spm: | ||
name: SPM | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: AckeeCZ/[email protected] | ||
- name: SPM tests | ||
run: swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
// | ||
// UIWindow.swift | ||
// ACKategories-iOSTests | ||
// | ||
// Created by Lukáš HromadnÃk on 23.11.2020. | ||
// | ||
|
||
#if canImport(UIKit) | ||
import UIKit | ||
|
||
extension UIWindow { | ||
static var dummy: UIWindow { | ||
UIWindow(frame: UIScreen.main.bounds) | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters