From 2a10505370ef58fa0ffb12fb6f5b59102020ad48 Mon Sep 17 00:00:00 2001 From: Fabiano Parente Date: Thu, 7 Sep 2023 17:20:00 -0300 Subject: [PATCH] BUG/MINOR: changes cache key --- .github/workflows/actions.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 33d6ee9a..ad3b62d3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -44,7 +44,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/*cfg') }} restore-keys: | ${{ runner.os }}-go- - name: tidy @@ -66,7 +66,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/*cfg') }} restore-keys: | ${{ runner.os }}-go- - name: tidy @@ -89,7 +89,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/*cfg') }} restore-keys: | ${{ runner.os }}-go- - name: Lint @@ -111,7 +111,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/*cfg') }} restore-keys: | ${{ runner.os }}-go- - name: Get dependencies @@ -138,7 +138,7 @@ jobs: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/*cfg') }} restore-keys: | ${{ runner.os }}-go- - uses: engineerd/setup-kind@v0.5.0