Skip to content

Commit db41ca0

Browse files
committed
Initial commit for production-test branch with TestModule contents
0 parents  commit db41ca0

File tree

21 files changed

+1113
-0
lines changed

21 files changed

+1113
-0
lines changed

.github/workflows/ci.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: "TestModule CI"
2+
3+
on:
4+
push:
5+
paths:
6+
- "Sources/**"
7+
- "Tests/**"
8+
- ".github/workflows/**"
9+
- "Package.swift"
10+
- "Example/**"
11+
pull_request:
12+
paths:
13+
- "Sources/**"
14+
- "Tests/**"
15+
- ".github/workflows/**"
16+
- "Package.swift"
17+
- "Example/**"
18+
workflow_call:
19+
20+
concurrency:
21+
group: ${{ github.ref_name }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
swift-package:
26+
name: ${{ matrix.name }}
27+
runs-on: ${{ matrix.runsOn }}
28+
env:
29+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
30+
timeout-minutes: 10
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
include:
35+
- xcode: "Xcode_16.3"
36+
runsOn: macos-latest
37+
name: "macOS, Xcode 16.3, Swift 6.1"
38+
- xcode: "Xcode_15.4"
39+
runsOn: macos-14
40+
name: "macOS 14, Xcode 15.4, Swift 5.10"
41+
- xcode: "Xcode_15.2"
42+
runsOn: macos-13
43+
name: "macOS 13, Xcode 15.2, Swift 5.9.2"
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Install Swift 6.2.0
47+
uses: fwal/setup-swift@v1
48+
with:
49+
swift-version: "6.2.0"
50+
- name: Swift Package Test
51+
run: |
52+
set -o pipefail
53+
swift build
54+
swift test
55+
56+
example-app:
57+
name: Example App - ${{ matrix.name }}
58+
runs-on: ${{ matrix.runsOn }}
59+
env:
60+
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
61+
timeout-minutes: 10
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
include:
66+
- xcode: "Xcode_16.3"
67+
runsOn: macos-latest
68+
name: "iOS Simulator"
69+
destination: "platform=iOS Simulator,name=iPhone 15 Pro"
70+
- xcode: "Xcode_15.4"
71+
runsOn: macos-14
72+
name: "iOS Simulator"
73+
destination: "platform=iOS Simulator,name=iPhone 15 Pro"
74+
steps:
75+
- uses: actions/checkout@v4
76+
- name: Build Example App
77+
run: |
78+
set -o pipefail
79+
cd Example
80+
xcodebuild -project Example.xcodeproj -scheme Example -destination "${{ matrix.destination }}" clean build

.gitignore

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## User settings
6+
xcuserdata/
7+
8+
## Obj-C/Swift specific
9+
*.hmap
10+
11+
## App packaging
12+
*.ipa
13+
*.dSYM.zip
14+
*.dSYM
15+
16+
## Playgrounds
17+
timeline.xctimeline
18+
playground.xcworkspace
19+
20+
# Swift Package Manager
21+
#
22+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
23+
# Packages/
24+
# Package.pins
25+
# Package.resolved
26+
# *.xcodeproj
27+
#
28+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
29+
# hence it is not needed unless you have added a package configuration file to your project
30+
# .swiftpm
31+
32+
.build/
33+
34+
# CocoaPods
35+
#
36+
# We recommend against adding the Pods directory to your .gitignore. However
37+
# you should judge for yourself, the pros and cons are mentioned at:
38+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
39+
#
40+
# Pods/
41+
#
42+
# Add this line if you want to avoid checking in source code from the Xcode workspace
43+
# *.xcworkspace
44+
45+
# Carthage
46+
#
47+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
48+
# Carthage/Checkouts
49+
50+
Carthage/Build/
51+
52+
# fastlane
53+
#
54+
# It is recommended to not store the screenshots in the git repo.
55+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
56+
# For more information about the recommended setup visit:
57+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
58+
59+
fastlane/report.xml
60+
fastlane/Preview.html
61+
fastlane/screenshots/**/*.png
62+
fastlane/test_output

.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.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
TestModule adheres to [Semantic Versioning](http://semver.org/).
4+
5+
## [Main](https://github.com/testuser/TestModule)
6+
### Added
7+
8+
### Changed
9+
10+
### Removed

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing
2+
3+
All contributors are welcome. Please use issues and pull requests to contribute to the project. And update [CHANGELOG.md](CHANGELOG.md) when committing.
4+
5+
## Making a change
6+
7+
When you commit a change, please add a note to [CHANGELOG.md](CHANGELOG.md).
8+
9+
## Release process
10+
11+
1. Confirm the build is [passing in GitHub Actions](https://github.com/testuser/TestModule/actions)
12+
2. Push a release commit
13+
1. Create a new Main section at the top
14+
2. Rename the old Main section like:
15+
## [1.0.5](https://github.com/testuser/TestModule/releases/tag/1.0.5)
16+
Released on 2019-10-15.
17+
3. Create a GitHub release
18+
1. Tag the release (like `1.0.5`)
19+
2. Paste notes from [CHANGELOG.md](CHANGELOG.md)

0 commit comments

Comments
 (0)