Use caching.
@@ -29,5 +29,12 @@ jobs:
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
+ # Pull the latest image to build, and avoid caching pull-only images.
+ # (docker pull is faster than caching in most cases.)
+ - run: docker-compose pull
+ # In this step, this action saves a list of existing images,
+ # the cache is created without them in the post run.
+ # It also restores the cache if it exists.
+ - uses: satackey/action-docker-layer-caching@v0.0.4
- name: Test
run: make ci
