Skip to content

Commit f68bef7

Browse files
DTSERWONE-887 - Generate documentation (#136)
* DTSERWONE-887 - Generate documentation * DTSERWONE-887 - Fix the doc target folders * DTSERWONE-887 - Script to push the documentation * DTSERWONE-887 - Publish doc on GitHub Pages * DTSERWONE-887 - Update Hippolyte lib
1 parent 2a35c37 commit f68bef7

7 files changed

+44
-96
lines changed

.github/workflows/ci.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Core SDK CI
1+
name: iOS Core SDK CI
22

33
on:
44
workflow_dispatch:
@@ -8,23 +8,18 @@ on:
88
- support/SDK-V3
99
- feature/**
1010
- bugfix/**
11-
pull_request:
12-
branches:
13-
- master
14-
- support/SDK-V3
15-
- feature/**
16-
- bugfix/**
1711

1812
jobs:
19-
tests:
20-
name: Tests
13+
test:
14+
name: Test - ${{ matrix.os }} - ${{ matrix.xcode_version }} - ${{ matrix.fastlane_task }}
2115
strategy:
2216
fail-fast: false
2317
matrix:
2418
include:
2519
- os: macos-12
2620
xcode_version: 13.4
2721
fastlane_task: unit_tests
22+
2823
runs-on: ${{ matrix.os }}
2924
steps:
3025
- uses: actions/checkout@v3
@@ -58,7 +53,8 @@ jobs:
5853

5954
- name: Code Coverage [Build report]
6055
run: |
61-
export PATH="/usr/local/opt/llvm/bin:$PATH"
56+
brew install llvm
57+
export PATH="$(brew --prefix llvm)/bin:$PATH"
6258
llvm-cov report \
6359
--use-color \
6460
--instr-profile=$(find ./output -name "*.profdata") \
@@ -67,7 +63,7 @@ jobs:
6763
6864
- name: Code Coverage [Export report to lcov format]
6965
run: |
70-
export PATH="/usr/local/opt/llvm/bin:$PATH"
66+
export PATH="$(brew --prefix llvm)/bin:$PATH"
7167
mkdir coverage
7268
llvm-cov export \
7369
--format=lcov > ./coverage/lcov.info \

.github/workflows/documentation.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update Documentation
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
documentation:
11+
name: Documentation
12+
strategy:
13+
matrix:
14+
include:
15+
- os: macos-12
16+
runs-on: ${{ matrix.os }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Generate documentation
21+
run: |
22+
jazzy \
23+
--min-acl public \
24+
--no-hide-documentation-coverage \
25+
--theme fullwidth \
26+
--title HyperwalletSDK \
27+
--module HyperwalletSDK \
28+
--output ./docs \
29+
--documentation=./*.md
30+
31+
- name: Publish on GitHub Pages
32+
uses: ftnext/[email protected]
33+
with:
34+
build_dir: docs
35+
github_token: ${{ secrets.GITHUB_TOKEN }}

Cartfile.private

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "JanGorman/Hippolyte" "0.6.0"
1+
github "JanGorman/Hippolyte" "1.4.1"

Makefile

-10
This file was deleted.

Scripts/travisPublishDocs.sh

-20
This file was deleted.

Tests/Balance/HyperwalletPrepaidCardBalanceTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class HyperwalletPrepaidCardBalanceTests: XCTestCase {
9393
XCTAssertNil(prepaidCardBalanceList, "The `prepaidCardBalanceList` should be nil")
9494
}
9595
}
96-
96+
9797
override static var defaultTestSuite: XCTestSuite {
9898
let testSuite = XCTestSuite(name: String(describing: self))
9999
let testParameters = getTestParameters()

_skip_travis.yml

-53
This file was deleted.

0 commit comments

Comments
 (0)