-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/MBX-3346-MindboxLoggerCI' into feature/MBX-0000…
…-TestMBLoggerCI
- Loading branch information
Showing
4 changed files
with
40 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,76 +10,37 @@ on: | |
- '**' | ||
|
||
jobs: | ||
unit: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | ||
- name: Update bundler | ||
run: gem install bundler | ||
- name: Install bundler dependencies | ||
run: bundle install | ||
- name: Run unit tests | ||
run: bundle exec fastlane unitTestLane | ||
# unit: | ||
# runs-on: macos-14 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Update bundler | ||
# run: gem install bundler | ||
# - name: Install bundler dependencies | ||
# run: bundle install | ||
# - name: Run unit tests | ||
# run: bundle exec fastlane unitTestLane | ||
|
||
logger-publish: | ||
needs: [unit] | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update bundler | ||
run: gem install bundler | ||
- name: Install bundler dependencies | ||
run: bundle install | ||
- name: Deploy to Cocoapods | ||
run: | | ||
set -eo pipefail | ||
pod lib lint --allow-warnings | ||
exit 0 | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} | ||
- name: Post to a Slack channel | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: 'C06RXV161RA' | ||
payload: | | ||
{ | ||
"text": "iOS - MindboxLogger release", | ||
"blocks": [ | ||
{ | ||
"type": "header", | ||
"text": { | ||
"type": "plain_text", | ||
"text": "🚀 MindboxLogger tested." | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_MOBILE_NOTIFIER_TOKEN }} | ||
|
||
publish: | ||
needs: [logger-publish] | ||
if: always() | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | ||
# - name: Release generation | ||
# run: ./git-release.sh "${{ github.event.head_commit.message }}" "${{secrets.GITHUBACCESSTOKEN}}" "${{secrets.GITHUBUSER}}" | ||
- name: Update bundler | ||
run: gem install bundler | ||
- name: Install bundler dependencies | ||
run: bundle install | ||
- name: Select Xcode | ||
run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app | ||
- name: Run build | ||
run: bundle exec fastlane buildLane | ||
env: | ||
CI: true | ||
- name: Deploy to Cocoapods | ||
run: | | ||
set -eo pipefail | ||
pod lib lint --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} | ||
# publish: | ||
# needs: [logger-publish] | ||
# runs-on: macos-14 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Release generation | ||
# run: ./git-release.sh "${{ github.event.head_commit.message }}" "${{secrets.GITHUBACCESSTOKEN}}" "${{secrets.GITHUBUSER}}" | ||
# - name: Update bundler | ||
# run: gem install bundler | ||
# - name: Install bundler dependencies | ||
# run: bundle install | ||
# - name: Select Xcode | ||
# run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app | ||
# - name: Run build | ||
# run: bundle exec fastlane buildLane | ||
# env: | ||
# CI: true | ||
# - name: Deploy to Cocoapods Mindbox/MindboxNotifications | ||
# run: | | ||
# set -eo pipefail | ||
# pod lib lint --allow-warnings | ||
# env: | ||
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Pod::Spec.new do |spec| | |
spec.license = { :type => "CC BY-NC-ND 4.0", :file => "LICENSE" } | ||
spec.author = { "Mindbox" => "[email protected]" } | ||
spec.platform = :ios, "10.0" | ||
spec.source = { :git => "https://github.com/mindbox-cloud/ios-sdk.git", :tag => "#{spec.version}-logger" } | ||
spec.source = { :git => "https://github.com/mindbox-cloud/ios-sdk.git", :tag => "#{spec.version}" } | ||
spec.source_files = "MindboxLogger/**/*.{swift}", "SDKVersionProvider/**/*.{swift}" | ||
spec.exclude_files = "Classes/Exclude" | ||
spec.resource_bundles = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters