diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f671af83..567dfaa3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,13 @@ jobs: uses: docker://docker with: args: docker restart mqtt + - name: Cache + uses: actions/cache@v3 + with: + # Cache modules only, not build + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go- - name: Build_and_Test run: make test - name: Push @@ -70,3 +77,4 @@ jobs: docker buildx build -f build/Dockerfile -t ghcr.io/thingspect/atlas:${TAG} --push . docker buildx rm docker logout ghcr.io + find /|grep pkg/mod