-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from grmeyer-hw-dev/feature/DTSERWONE-821_addr…
…ess_swiflint_issues_v0_50 DTSERWONE-821 - Address swift lint issue
- Loading branch information
Showing
6 changed files
with
131 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: iOS Insight | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- support/SDK-V3 | ||
- feature/** | ||
- bugfix/** | ||
|
||
jobs: | ||
test: | ||
name: Test - ${{ matrix.os }} - ${{ matrix.xcode_version }} - ${{ matrix.fastlane_task }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-12 | ||
xcode_version: 14.2 | ||
fastlane_task: unit_tests | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Xcode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '${{ matrix.xcode_version }}' | ||
|
||
- name: Carthage [Setup cache] | ||
uses: actions/cache@v3 | ||
with: | ||
path: Carthage | ||
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }} | ||
- name: Carthage [Install dependencies] | ||
run: carthage bootstrap | ||
--platform ios | ||
--cache-builds | ||
--use-xcframeworks | ||
--no-use-binaries | ||
|
||
- name: Run ${{ matrix.task_title }} | ||
run: fastlane ${{ matrix.fastlane_task }} | ||
|
||
- name: Lint validation | ||
run: | ||
swiftlint lint --strict --reporter json | ||
|
||
- name: Code Coverage [Build report] | ||
run: | | ||
brew install llvm | ||
export PATH="$(brew --prefix llvm)/bin:$PATH" | ||
llvm-cov report \ | ||
--use-color \ | ||
--instr-profile=$(find ./output -name "*.profdata") \ | ||
--object $(find ./output -name "Insights") | ||
- name: Code Coverage [Export report to lcov format] | ||
run: | | ||
export PATH="$(brew --prefix llvm)/bin:$PATH" | ||
mkdir coverage | ||
llvm-cov export \ | ||
--format=lcov > ./coverage/lcov.info \ | ||
--instr-profile=$(find ./output -name "*.profdata") \ | ||
--object $(find ./output -name "Insights") | ||
- name: Post to Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Update Documentation | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
documentation: | ||
name: Documentation | ||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-12 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate documentation | ||
run: | | ||
jazzy \ | ||
--min-acl public \ | ||
--no-hide-documentation-coverage \ | ||
--theme fullwidth \ | ||
--title HyperwalletSDK \ | ||
--module HyperwalletSDK \ | ||
--output ./docs \ | ||
--documentation=./*.md | ||
- name: Publish on GitHub Pages | ||
uses: ftnext/[email protected] | ||
with: | ||
build_dir: docs | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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
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