nimblehq / kmm-templates

MIT License
2 stars 0 forks source link

[#39] Optimize the workflow to generate the "sample" project before executing CI actions #38

Closed luongvo closed 11 months ago

luongvo commented 11 months ago

What happened 👀

Insight 📝

The Danger for iOS has an issue when running from the non-root directory: sample/ios, which makes the SwiftFormat can not file expected files because of duplicating the sample/ios path https://github.com/nimblehq/kmm-templates/actions/runs/5982564343/job/16231801560 💥

image

Proof Of Work 📹

The workflow works properly as it is.

luongvo commented 11 months ago

@phongvhd93 @markgravity @kaungkhantsoe This PR is now ready for review, too 🎉

github-actions[bot] commented 11 months ago
8 Warnings
:warning: Big PR
:warning: Uh oh! Your project is under 80% coverage!
:warning: shared/src/androidMain/kotlin/co/nimblehq/kmm/template/Platform.android.kt#L3 - The file name 'Platform.android' does not match the name of the single top-level declaration 'AndroidPlatform'.
:warning: shared/src/androidUnitTest/kotlin/co/nimblehq/kmm/template/androidTest.kt#L6 - The file name 'androidTest' does not match the name of the single top-level declaration 'AndroidGreetingTest'.
:warning: shared/src/commonTest/kotlin/co/nimblehq/kmm/template/commonTest.kt#L6 - The file name 'commonTest' does not match the name of the single top-level declaration 'CommonGreetingTest'.
:warning: shared/src/commonTest/kotlin/co/nimblehq/kmm/template/extensions/ResponseMappingTest.kt#L18 - Exception is a too generic Exception. Prefer throwing specific exceptions that indicate a specific error case.
:warning: shared/src/iosMain/kotlin/co/nimblehq/kmm/template/Platform.ios.kt#L5 - The file name 'Platform.ios' does not match the name of the single top-level declaration 'IOSPlatform'.
:warning: shared/src/iosTest/kotlin/co/nimblehq/kmm/template/iosTest.kt#L6 - The file name 'iosTest' does not match the name of the single top-level declaration 'IosGreetingTest'.

Kover report:

🧛 Unit Tests Code Coverage: 10.68%

Coverage of Modified Files:

File Coverage

Modified Files Not Found In Coverage Report:

CONTRIBUTING.md CONTRIBUTING.md Constant.swift DebugProduction.xcconfig DebugStaging.xcconfig Gemfile.lock README.md README.md ReleaseProduction.xcconfig ReleaseStaging.xcconfig project.pbxproj test.yml test.yml

Codebase cunningly covered by count Shroud 🧛

Generated by :no_entry_sign: Danger

github-actions[bot] commented 11 months ago
1 Warning
:warning: This pull request is quite big (618 lines changed), please consider splitting it into multiple pull requests.

SwiftFormat found issues:

File Rules
fastlane/Constants/Constant.swift:122:1 warning: (trailingSpace) Remove trailing space at end of a line.
fastlane/Constants/Constant.swift:129:1 warning: (trailingSpace) Remove trailing space at end of a line.
fastlane/Constants/Constant.swift:145:1 warning: (trailingSpace) Remove trailing space at end of a line.
fastlane/Constants/Constant.swift:153:1 warning: (trailingSpace) Remove trailing space at end of a line.
fastlane/Constants/Constant.swift:160:1 warning: (trailingSpace) Remove trailing space at end of a line.
fastlane/Constants/Constant.swift:164:1 warning: (spaceAroundOperators) Add or remove space around operators or delimiters.
fastlane/Constants/Constant.swift:167:1 warning: (trailingSpace) Remove trailing space at end of a line.

Current coverage for sample is 18.25%

No files affecting coverage found


Powered by xcov

Generated by :no_entry_sign: Danger