Skip to content

Commit

Permalink
ci: prerelease prep (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seavenly authored Nov 8, 2023
1 parent 31ba3b5 commit 12cb440
Show file tree
Hide file tree
Showing 29 changed files with 1,091 additions and 46 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
jobs:
cocoapods:
name: CocoaPods
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -17,4 +17,30 @@ jobs:
run: bundle install

- name: Run pod lib lint
run: bundle exec fastlane build
run: bundle exec fastlane build_pod

spm:
name: Swift Package Manager
runs-on: macos-13
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Install Dependencies
run: bundle install

- name: Build SPM test app
run: bundle exec fastlane build_spm

carthage:
name: Carthage
runs-on: macos-13
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Install Dependencies
run: bundle install

- name: Build Carthage test app
run: bundle exec fastlane build_carthage
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
jobs:
linting:
name: Linting
runs-on: macOS-latest
runs-on: macos-13
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ on:

jobs:
linting:
uses: paypal/paypal-messages-ios/.github/workflows/linting.yml@release
uses: ./.github/workflows/linting.yml

tests:
uses: paypal/paypal-messages-ios/.github/workflows/tests.yml@release
uses: ./.github/workflows/tests.yml

build:
uses: paypal/paypal-messages-ios/.github/workflows/build.yml@release
uses: ./.github/workflows/build.yml

release:
name: Release
needs: [linting, tests, build]
runs-on: macos-latest
runs-on: macos-13

permissions:
contents: write
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Install Dependencies
run: |
bundle install
npm i -g @semantic-release/exec @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits@6.1.0
npm i -g @semantic-release/exec@6 @semantic-release/changelog@6 @semantic-release/git@10 conventional-changelog-conventionalcommits@6
- name: GitHub Release
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
jobs:
tests:
name: Tests
runs-on: macOS-latest
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Pods

# Carthage
Carthage/
*.xcframework.zip

# SPM
.swiftpm
Expand Down
6 changes: 3 additions & 3 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["main"],
"branches": ["main", {"name": "develop", "prerelease": true}],
"plugins": [
[
"@semantic-release/commit-analyzer",
Expand Down Expand Up @@ -44,7 +44,7 @@
"@semantic-release/exec",
{
"prepareCmd": "bundle exec fastlane release version:${nextRelease.version}",
"successCmd": "bundle exec fastlane sync"
"successCmd": "bundle exec fastlane sync channel:${nextRelease.channel}"
}
],
[
Expand All @@ -57,7 +57,7 @@
[
"@semantic-release/github",
{
"assets": "dist/*"
"assets": "PayPalMessages.xcframework.zip"
}
]
]
Expand Down
33 changes: 16 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.811.0)
aws-sdk-core (3.181.0)
aws-partitions (1.829.0)
aws-sdk-core (3.184.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.5)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.71.0)
aws-sdk-core (~> 3, >= 3.177.0)
aws-sdk-kms (1.72.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.134.0)
aws-sdk-s3 (1.136.0)
aws-sdk-core (~> 3, >= 3.181.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.6)
Expand Down Expand Up @@ -85,7 +85,7 @@ GEM
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
excon (0.102.0)
excon (0.103.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
Expand Down Expand Up @@ -115,7 +115,7 @@ GEM
faraday_middleware (1.2.0)
faraday (~> 1.0)
fastimage (2.2.7)
fastlane (2.214.0)
fastlane (2.216.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
Expand All @@ -136,6 +136,7 @@ GEM
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
http-cookie (~> 1.0.5)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
mini_magick (>= 4.9.4, < 5.0.0)
Expand All @@ -147,7 +148,7 @@ GEM
security (= 0.1.3)
simctl (~> 1.6.3)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
terminal-table (~> 3)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
Expand All @@ -158,7 +159,7 @@ GEM
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.48.0)
google-apis-androidpublisher_v3 (0.50.0)
google-apis-core (>= 0.11.0, < 2.a)
google-apis-core (0.11.1)
addressable (~> 2.5, >= 2.5.1)
Expand Down Expand Up @@ -189,10 +190,9 @@ GEM
google-cloud-core (~> 1.6)
googleauth (>= 0.16.2, < 2.a)
mini_mime (~> 1.0)
googleauth (1.7.0)
googleauth (1.8.1)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
Expand All @@ -205,7 +205,6 @@ GEM
jmespath (1.6.2)
json (2.6.3)
jwt (2.7.1)
memoist (0.16.2)
mini_magick (4.12.0)
mini_mime (1.1.5)
minitest (5.19.0)
Expand All @@ -232,7 +231,7 @@ GEM
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
security (0.1.3)
signet (0.17.0)
signet (0.18.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
Expand All @@ -242,8 +241,8 @@ GEM
naturally
slack-notifier (2.4.0)
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
trailblazer-option (0.1.2)
tty-cursor (0.7.1)
tty-screen (0.8.1)
Expand All @@ -257,10 +256,10 @@ GEM
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (1.8.0)
unicode-display_width (2.4.2)
webrick (1.8.1)
word_wrap (1.0.0)
xcodeproj (1.22.0)
xcodeproj (1.23.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@

Welcome to the PayPal iOS SDK Messages Module. This package facilitates rendering PayPal messages to promote offers such as Pay Later and PayPal Credit to customers. **It is recommended to integrate this package using the [PayPal iOS SDK](https://github.com/paypal/paypal-ios)**.

**The PayPalMessages package permits a deployment target of iOS 14.0 or higher**. It requires Xcode 14.2+ and Swift 5.7+.
**The PayPalMessages package permits a deployment target of iOS 14.0 or higher**. It requires Xcode 14.3+ and Swift 5.8+.

## Support

### Languages
This SDK supports Swift 5.7+. This SDK is written in Swift.
This SDK supports Swift 5.8+. This SDK is written in Swift.

### Package Managers

This SDK supports:
This SDK module supports:
- CocoaPods
- Swift Package Manager
- Carthage

### UI Frameworks

Expand All @@ -31,7 +32,7 @@ In order to display PayPal messages within your iOS application, a Client ID is
3. Update the placeholder `clientID` in the default message configuration found in `Demo/DefaultMessageConfig` to your sandbox client ID.
4. Select the `Demo` scheme, and then run.

Xcode 14.2+ is required to run the demo app.
Xcode 14.3+ is required to run the demo app.

## Testing

Expand Down
1 change: 1 addition & 0 deletions TestApps/CarthageTest/Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "paypal/paypal-messages-ios" "main"
Loading

0 comments on commit 12cb440

Please sign in to comment.