My ToDo app repo has a GitHub Action that runs npm run test
for both frontend and backend using Docker Compose.
It used to take 4 minutes and 48 seconds to run tests after building images, but by using buildx cache backends, it was shortened to 2 minutes and 18 seconds.
The latency reduces by 2 minutes and 30 seconds, and the performance improvement is over 2x (see the related pull request).
This article guides you simple steps you can add to benefit from caches.
Accelerate Your Docker Compose in GitHub Actions with Buildx Cache
· 3 min read