Blacksmith now supports transparent caching as explained in https://www.blacksmith.sh/blog/cache. To this effect it is recommended to switch to the upstream maintained versions of this action as you will continue to leverage our much faster caching without any code changes. This action will no longer receive dependency or security updates.
Supercharge your Turborepo builds with our dedicated GitHub Actions caching service, designed to make your CI workflows faster and more efficient.
Easily integrate our caching action into your GitHub Actions workflow by adding
the following step before you run turbo build
:
- name: Cache for Turbo
uses: rharkor/[email protected]
This GitHub Action facilitates:
- Server Initialization: Automatically spins up a server on
localhost:41230
. - Environment Setup: Sets up
TURBO_API
,TURBO_TOKEN
, andTURBO_TEAM
environment variables required byturbo build
. - Efficient Caching: Leverages GitHub's cache service to significantly accelerate build times.
Customize the caching behavior with the following optional settings (defaults provided):
with:
cache-prefix: turbogha_ # Custom prefix for cache keys
-
Start the development server:
npm run dev-run
-
In a separate terminal, execute the tests:
npm test
Licensed under the MIT License. For more details, see the LICENSE file.
This project is inspired by dtinth and has been comprehensively rewritten for enhanced robustness and reliability.