Skip to content

Commit

Permalink
improve cache hitrate...
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottSuarez committed Oct 30, 2023
1 parent 023bd7e commit 348839d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-tgc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ on:
sha:
description: "The commit SHA in magic-modules repository where the status result will be posted"
required: true
caller_id:
description: "Identity of the workflow dispatch caller"

concurrency:
group: test-tgc-${{ github.event.inputs.owner }}-${{ github.event.inputs.repo }}-${{ github.event.inputs.branch }}
Expand All @@ -50,8 +48,9 @@ jobs:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-test-${{ github.event.inputs.repo }}-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-test-${{ github.event.inputs.repo }}-${{ hashFiles('**/go.sum', 'google-beta/transport/**', 'google-beta/tpgresource/**', 'google-beta/acctest/**', 'google-beta/envvar/**', 'google-beta/sweeper/**', 'google-beta/verify/**') }}
restore-keys: |
${{ runner.os }}-test-${{ github.event.inputs.repo }}-${{ hashFiles('**/go.sum') }}
${{ runner.os }}-test-${{ github.event.inputs.repo }}-
- name: Check for Code Changes
id: pull_request
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-tpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ on:
sha:
description: "The commit SHA in magic-modules repository where the status result will be posted"
required: true
caller_id:
description: "Identity of the workflow dispatch caller"

concurrency:
group: test-tpg-${{ github.event.inputs.owner }}-${{ github.event.inputs.repo }}-${{ github.event.inputs.branch }}
Expand All @@ -50,8 +48,9 @@ jobs:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-test-${{ github.event.inputs.repo }}-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-test-${{ github.event.inputs.repo }}-${{ hashFiles('**/go.sum', 'google-beta/transport/**', 'google-beta/tpgresource/**', 'google-beta/acctest/**', 'google-beta/envvar/**', 'google-beta/sweeper/**', 'google-beta/verify/**') }}
restore-keys: |
${{ runner.os }}-test-${{ github.event.inputs.repo }}-${{ hashFiles('**/go.sum') }}
${{ runner.os }}-test-${{ github.event.inputs.repo }}-
- name: Check for Code Changes
id: pull_request
Expand Down

0 comments on commit 348839d

Please sign in to comment.