mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Replace danger-swift with a actions/github-script version (#6080)
* Replace danger-swift with a actions/github-script version * Report PR check results in a comment Annotations are only visible in the Checks tab, so the results were easy to miss on the pull request itself. The workflow now keeps a single comment up to date on the Conversation tab, listing failures and warnings together, and deletes it again once there is nothing left to report. Commenting on pull requests from forks needs a token with write access, which the pull_request trigger does not provide, hence the switch to pull_request_target. The job never checks out or executes any code from the pull request, it only reads the event payload and the list of changed files.
This commit is contained in:
+1
-1
@@ -150,7 +150,7 @@ Our [changelog](CHANGES.md) is automatically generated by GitHub, based on the P
|
||||
For Swift coding style we use [SwiftLint](https://github.com/realm/SwiftLint) to check some conventions at compile time (rules are located in the `.swiftlint.yml` file).
|
||||
Otherwise please have a look to [Apple Swift conventions](https://swift.org/documentation/api-design-guidelines.html#conventions). We are also using some of the conventions of [raywenderlich.com Swift style guide](https://github.com/raywenderlich/swift-style-guide).
|
||||
|
||||
We enforce the coding style by running checks on the CI for every PR through [Danger](Dangerfile.swift), [SwiftLint](.swiftlint.yml), [SwiftFormat](.swiftformat) and [SonarCloud](https://sonarcloud.io/project/overview?id=element-x-ios)
|
||||
We enforce the coding style by running checks on the CI for every PR through [PR Checks](.github/workflows/pr-checks.yml), [SwiftLint](.swiftlint.yml), [SwiftFormat](.swiftformat) and [SonarCloud](https://sonarcloud.io/project/overview?id=element-x-ios)
|
||||
|
||||
We also gather coverage reports on every PR through [Codecov](https://app.codecov.io/gh/element-hq/element-x-ios) and will eventually start enforcing minimums.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user