Something I forgot to mention on my previous post on GitHub Actions.
GitHub charges 10 build minutes for each MacOS build minute. Be aware of this when working with GitHub Actions for your Mac based builds. It is probably worth it to try and off load as much work as possible to a Linux based image.
SwiftLint and other code analysis is a perfect example of examples of work to be offloaded to a Linux image.