buresdv / Cork

A fast GUI for Homebrew written in SwiftUI
https://corkmac.app
2.33k stars 131 forks source link

Add GitHub Action to run swiftlint, swift build, and swift test #378

Closed cclauss closed 3 months ago

cclauss commented 3 months ago

Test results: https://github.com/cclauss/Cork/actions

buresdv commented 3 months ago

I have very little experience with CI, could you please tell me more about what makes this useful? :)

cclauss commented 3 months ago

Each time someone changes code to this repository, a continuous integration test is run to build and then run the tests. If their changes have broken the tests then we know that fixes should be made before merging those changes. There is also a lint step to see if the code is properly formatted.

Looking at the usual test results should give you a better idea: https://github.com/cclauss/Cork/actions

buresdv commented 3 months ago

Thank you, is there a way to graphically report the results of this analysis? So we don't have to keep going into the run reports.

One more thing, could you also add a way to provide a custom Swiftlint configuration file?

cclauss commented 3 months ago

is there a way to graphically report the results of this analysis

If you approve the workflow run below then you will see the graphical results.

a way to provide a custom Swiftlint configuration file?

https://github.com/realm/SwiftLint?tab=readme-ov-file#configuration documents how to add .swiftlint.yml to this repo.

buresdv commented 3 months ago

Alright, thanks a lot :)