Skip to content

Commit 9c40fe4

Browse files
authored
ci: add circle-ci workflow for testing (#3)
* ci: add circle ci workflow for testing * fix: typo in package target
1 parent c0a88bd commit 9c40fe4

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

.circleci/config.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
version: 2.1
3+
4+
5+
orbs:
6+
macos: circleci/macos@2.3.3
7+
8+
9+
default-executor: &default-executor
10+
macos:
11+
xcode: 14.1.0
12+
working_directory: ~/circle-ci
13+
14+
15+
ios-simulator: &ios-simulator
16+
version: "16.1"
17+
platform: "iOS"
18+
device: "iPhone 14"
19+
20+
21+
jobs:
22+
build-test-ios:
23+
<<: *default-executor
24+
25+
steps:
26+
- checkout
27+
- macos/preboot-simulator:
28+
<<: *ios-simulator
29+
- run:
30+
name: Build target on iOS
31+
command: xcodebuild build -scheme 'AmplifyUtilsNotifications' -sdk iphonesimulator -destination "id=${MACOS_ORB_DEVICE_UDID}"
32+
- run:
33+
name: Run unit tests
34+
command: xcodebuild test -scheme 'AmplifyUtilsNotifications' -sdk iphonesimulator -destination "id=${MACOS_ORB_DEVICE_UDID}"
35+
36+
build-test-macos:
37+
<<: *default-executor
38+
39+
steps:
40+
- checkout
41+
- run:
42+
name: Build target on macOS
43+
command: xcodebuild build -scheme 'AmplifyUtilsNotifications' -sdk macosx -destination "platform=macOS"
44+
- run:
45+
name: Run unit tests
46+
command: xcodebuild test -scheme 'AmplifyUtilsNotifications' -sdk macosx -destination "platform=macOS"
47+
48+
49+
workflows:
50+
test-ios:
51+
jobs:
52+
- build-test-ios
53+
test-macos:
54+
jobs:
55+
- build-test-macos

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Swift Package Manager
2+
.build/
3+
!.swiftpm/xcode/package.xcworkspace
4+
5+
# Xcode
6+
## User settings
7+
xcuserdata/
8+
9+
## Obj-C/Swift specific
10+
*.hmap
11+
12+
## App packaging
13+
*.ipa
14+
*.dSYM.zip
15+
*.dSYM

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "AmplifUtilsNotifications",
7+
name: "AmplifyUtilsNotifications",
88
platforms: [.iOS(.v13), .macOS(.v10_15)],
99
products: [
1010
.library(

0 commit comments

Comments
 (0)