Browse Source

Cache go mod in CircleCI

DarthSim 5 years ago
parent
commit
f7dc78a2fe
1 changed files with 7 additions and 0 deletions
  1. 7 0
      .circleci/config.yml

+ 7 - 0
.circleci/config.yml

@@ -147,6 +147,13 @@ jobs:
           vips_version: << parameters.vips_version >>
       - install_go:
           go_version: << parameters.go_version >>
+      - restore_cache:
+          keys:
+            - go-modules-{{ checksum "go.sum" }}
       - run:
           name: Build imgproxy
           command: go test -v
+      - save_cache:
+          key: go-modules-{{ checksum "go.sum" }}
+          paths:
+            - "/go/pkg/mod"