diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 91c56e2ca..b96eccedc 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -29,7 +29,7 @@ jobs: ~/.cache/go-build ~/go/pkg/mod ~/go/bin - key: go-artifacts-${{ runner.os }}-check-licenses-${{ hashFiles('go.sum') }} + key: go-artifacts-${{ runner.os }}-check-licenses-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} restore-keys: go-artifacts-${{ runner.os }}-check-licenses- - name: Check License run: make check-licenses diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6dec8ab5d..f37755abf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: ~/.cache/go-build ~/go/pkg/mod ~/go/bin - key: go-artifacts-${{ runner.os }}-check-all-${{ hashFiles('go.sum') }} + key: go-artifacts-${{ runner.os }}-check-all-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} restore-keys: go-artifacts-${{ runner.os }}-check-all- - name: Run check-all @@ -72,7 +72,7 @@ jobs: ~/.cache/go-build ~/go/pkg/mod ~/go/bin - key: go-artifacts-${{ runner.os }}-crossbuild-${{ hashFiles('go.sum') }} + key: go-artifacts-${{ runner.os }}-crossbuild-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} restore-keys: go-artifacts-${{ runner.os }}-crossbuild- - name: Build @@ -102,7 +102,7 @@ jobs: ~/.cache/go-build ~/go/pkg/mod ~/go/bin - key: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}-${{ hashFiles('go.sum') }} + key: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }} restore-keys: go-artifacts-${{ runner.os }}-${{ matrix.scenario }}- - name: run tests