Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ jobs:
- xcode_version: '12.5'
destination_ios: 'OS=14.5,name=iPhone 12'
destination_macos: 'platform=macOS'
destination_watchos: 'OS=7.4,name=Apple Watch Series 6 - 44mm'
destination_tvos: 'OS=14.5,name=Apple TV'
- xcode_version: '13.1'
destination_ios: 'OS=15.0,name=iPhone 13'
destination_macos: 'platform=macOS'
destination_watchos: 'OS=8.0,name=Apple Watch Series 7 - 45mm'
destination_tvos: 'OS=15.0,name=Apple TV'

steps:
- uses: actions/checkout@v2
Expand All @@ -42,6 +46,14 @@ jobs:
- name: Build & Unit-Test Library (iOS)
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme $SCHEME -destination "${{ matrix.destination_ios }}" clean test | bundle exec xcpretty

# Build library & Run Unit-Tests (watchOS)
- name: Build & Unit-Test Library (watchOS)
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme $SCHEME -destination "${{ matrix.destination_watchos }}" clean test | bundle exec xcpretty

# Build library & Run Unit-Tests (tvOS)
- name: Build & Unit-Test Library (tvOS)
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme $SCHEME -destination "${{ matrix.destination_tvos }}" clean test | bundle exec xcpretty

# Build Example Project & Run UI-Tests (iOS)
- name: Build & UI-Test Example Project (iOS)
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace "Example/Example.xcworkspace" -scheme "Example" -destination "${{ matrix.destination_ios }}" clean test | bundle exec xcpretty
Expand Down
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ let package = Package(
name: "swift-user-defaults",
platforms: [
.macOS(.v10_12),
.iOS(.v11)
.iOS(.v11),
.watchOS(.v7),
.tvOS(.v10)
],
products: [
.library(name: "SwiftUserDefaults", targets: ["SwiftUserDefaults"]),
Expand Down
2 changes: 2 additions & 0 deletions swift-user-defaults.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Pod::Spec.new do |s|

s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '7'

# Run Unit Tests
s.test_spec 'Tests' do |test_spec|
Expand Down