I made a GitHub Action to install/cache swift based tools used in workflows

Originally I made it to install xcbeautify for formatting my test output on Linux but it's also useful for integrating SwiftFormat/SwiftLint into your PR checks. Since Linux runners are cheaper (and have the latest version of Swift already installed), it's better to use those for these kind of tasks. It also allows specifying a version (or version range) instead of always installing the latest version, like homebrew.

Here is the link to the repo, the readme contains examples of how you would use it: https://github.com/Cyberbeni/install-swift-tool

Terms of Service

Privacy Policy

Cookie Policy