-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e4a8b9
commit 1d07831
Showing
1 changed file
with
41 additions
and
39 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 |
---|---|---|
|
@@ -12,6 +12,9 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
|
||
jobs: | ||
lint: | ||
name: build | ||
|
@@ -31,52 +34,51 @@ jobs: | |
run: ssh-keyscan -H github.com >> ~/.ssh/known_hosts | ||
|
||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '15.0.1' | ||
|
||
- name: Echo | ||
run: uname -m | ||
|
||
- name: Print os | ||
run: cat /etc/os-release | ||
|
||
- name: Build | ||
env: | ||
GITHUB_ACTOR: ${{ github.actor }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: xcodebuild build test -scheme "AtalaPRISMSDK-Package" -destination "platform=iOS Simulator,name=IPhone 14" -resultBundlePath TestResults | ||
|
||
- name: Build and test | ||
run: | | ||
swift build --target Apollo | ||
xcodebuild -scheme "AtalaPRISMSDK-Package" \ | ||
-destination "platform=iOS Simulator,name=IPhone 14" \ | ||
-derivedDataPath "~/.derivedData" \ | ||
-enableCodeCoverage YES \ | ||
-resultBundlePath TestResults.xcresult \ | ||
clean build test | xcpretty | ||
# - name: Generate momd | ||
# run: | | ||
# /Applications/Xcode.app/Contents/Developer/usr/bin/momc \ | ||
# ./AtalaPrismSDK/Pluto/Sources/Resources/PrismPluto.xcdatamodeld \ | ||
# .build/debug/AtalaPRISMSDK_Pluto.bundle/PrismPluto.momd | ||
# swift test --enable-code-coverage | ||
- name: Install mint | ||
run: brew install mint | ||
|
||
- name: Generate lcov | ||
run: | | ||
xcrun xccov view --report --json TestResults.xcresult > cov.json | ||
mint run trax-retail/[email protected] cov.json \ | ||
--mode full \ | ||
--include-target Apollo \ | ||
--include-target Authenticate \ | ||
--include-target Builders \ | ||
--include-target Castor \ | ||
--include-target Domain \ | ||
--include-target Mercury \ | ||
--include-target Pluto \ | ||
--include-target Pollux \ | ||
--include-target PrismAgent > lcov.info | ||
# - name: Generate lcov | ||
# run: | | ||
# xcrun llvm-cov export \ | ||
# -format="lcov" \ | ||
# .build/debug/AtalaPRISMSDKPackageTests.xctest/Contents/MacOS/AtalaPRISMSDKPackageTests \ | ||
# -instr-profile .build/debug/codecov/default.profdata \ | ||
# --ignore-filename-regex='.build/.*' \ | ||
# --ignore-filename-regex='Tests/.*' \ | ||
# --ignore-filename-regex='Core/.*' > lcov.info | ||
|
||
# - name: Build coverage report | ||
# run: genhtml lcov.info -o coverage_html -q | ||
- name: Build coverage report | ||
run: genhtml lcov.info -o coverage_html -q | ||
|
||
# - name: Publish to coveralls | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# uses: coverallsapp/github-action@v2 | ||
# with: | ||
# file: "lcov.info" | ||
- name: Publish to coveralls | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: "lcov.info" | ||
|
||
# - name: Publish Code Coverage Report | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: swift-coverage | ||
# path: "coverage_html" | ||
- name: Publish Code Coverage Report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: swift-coverage | ||
path: "coverage_html" |