Skip to content

Commit 71e6c56

Browse files
committed
release 0.1.0
check list - [x] README.md - [x] CI
1 parent b20b06e commit 71e6c56

File tree

17 files changed

+1293
-0
lines changed

17 files changed

+1293
-0
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: 0 0 * * *
8+
9+
jobs:
10+
test:
11+
runs-on: macOS-latest
12+
env:
13+
PROJECT: APIRouter.xcodeproj
14+
SCHEME: APIRouter-Package
15+
CODECOV_PACKAGE_NAME: APIRouter
16+
strategy:
17+
matrix:
18+
env:
19+
- sdk: iphonesimulator
20+
destination: platform=iOS Simulator,name=iPhone 14 Pro,OS=16.0
21+
22+
- sdk: macosx
23+
destination: platform=macOS,arch=x86_64
24+
25+
- sdk: appletvsimulator
26+
destination: platform=tvOS Simulator,name=Apple TV,OS=16.0
27+
28+
- sdk: applewatchsimulator
29+
destination: platform=watchOS Simulator,OS=9.0,name=Apple Watch Series 5 (44mm)
30+
31+
steps:
32+
- uses: actions/checkout@v3
33+
34+
- name: List SDKs and Devices
35+
run: xcodebuild -showsdks && xcrun xctrace list devices
36+
37+
- name: Generate Xcode Project
38+
run: swift package generate-xcodeproj
39+
40+
- name: Build and Test
41+
run: |
42+
xcodebuild clean build test \
43+
-project "$PROJECT" \
44+
-scheme "$SCHEME" \
45+
-destination "$DESTINATION" \
46+
-configuration Debug \
47+
-enableCodeCoverage YES
48+
49+
env:
50+
SDK: ${{ matrix.env.sdk }}
51+
DESTINATION: ${{ matrix.env.destination }}
52+
53+
- name: Upload Code Coverage
54+
run: |
55+
bash <(curl -s https://codecov.io/bash) \
56+
-X xcodeplist \
57+
-J "$CODECOV_PACKAGE_NAME"
58+
env:
59+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
/*.xcodeproj
5+
xcuserdata/
6+
DerivedData/
7+
.swiftpm/config/registries.json
8+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
9+
.netrc

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1410"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "APIRouter"
18+
BuildableName = "APIRouter"
19+
BlueprintName = "APIRouter"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "APIRouterTests"
32+
BuildableName = "APIRouterTests"
33+
BlueprintName = "APIRouterTests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES">
44+
<Testables>
45+
<TestableReference
46+
skipped = "NO">
47+
<BuildableReference
48+
BuildableIdentifier = "primary"
49+
BlueprintIdentifier = "APIRouterTests"
50+
BuildableName = "APIRouterTests"
51+
BlueprintName = "APIRouterTests"
52+
ReferencedContainer = "container:">
53+
</BuildableReference>
54+
</TestableReference>
55+
</Testables>
56+
</TestAction>
57+
<LaunchAction
58+
buildConfiguration = "Debug"
59+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
60+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
61+
launchStyle = "0"
62+
useCustomWorkingDirectory = "NO"
63+
ignoresPersistentStateOnLaunch = "NO"
64+
debugDocumentVersioning = "YES"
65+
debugServiceExtension = "internal"
66+
allowLocationSimulation = "YES">
67+
</LaunchAction>
68+
<ProfileAction
69+
buildConfiguration = "Release"
70+
shouldUseLaunchSchemeArgsEnv = "YES"
71+
savedToolIdentifier = ""
72+
useCustomWorkingDirectory = "NO"
73+
debugDocumentVersioning = "YES">
74+
<MacroExpansion>
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "APIRouter"
78+
BuildableName = "APIRouter"
79+
BlueprintName = "APIRouter"
80+
ReferencedContainer = "container:">
81+
</BuildableReference>
82+
</MacroExpansion>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>APIRouter.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
<key>RouteBuilder.xcscheme_^#shared#^_</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>1</integer>
16+
</dict>
17+
</dict>
18+
<key>SuppressBuildableAutocreation</key>
19+
<dict>
20+
<key>APIRouter</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
<key>APIRouterTests</key>
26+
<dict>
27+
<key>primary</key>
28+
<true/>
29+
</dict>
30+
<key>RouteBuilder</key>
31+
<dict>
32+
<key>primary</key>
33+
<true/>
34+
</dict>
35+
<key>RouteBuilderTests</key>
36+
<dict>
37+
<key>primary</key>
38+
<true/>
39+
</dict>
40+
</dict>
41+
</dict>
42+
</plist>

Package.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// swift-tools-version: 5.7
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "APIRouter",
7+
platforms: [
8+
.iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6), .macCatalyst(.v13)
9+
],
10+
products: [
11+
.library(
12+
name: "APIRouter",
13+
targets: ["APIRouter"]),
14+
],
15+
dependencies: [],
16+
targets: [
17+
.target(
18+
name: "APIRouter",
19+
dependencies: []),
20+
.testTarget(
21+
name: "APIRouterTests",
22+
dependencies: ["APIRouter"]),
23+
]
24+
)

0 commit comments

Comments
 (0)