Skip to content

Commit

Permalink
Fix the path from/to which the Go mod cache is populated in e2e test …
Browse files Browse the repository at this point in the history
…runs

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Oct 4, 2023
1 parent 06f24d4 commit 1fc24e1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pr-comment-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ jobs:
OUTPUT=$(git log -1 --format='%H')
echo "commit-sha=$OUTPUT" >> $GITHUB_OUTPUT
- name: Find the Go Build Cache
if: ${{ inputs.package-type == 'provider' }}
- name: Find Go Caches
id: go
run: echo "cache=$(make go.cachedir)" >> $GITHUB_OUTPUT
run: |
echo "cache=$(make go.cachedir)" >> $GITHUB_OUTPUT
echo "modcache=$(make go.mod.cachedir)" >> $GITHUB_OUTPUT
- name: Cache the Go Build Cache
if: ${{ inputs.package-type == 'provider' }}
Expand All @@ -139,11 +140,11 @@ jobs:
key: ${{ runner.os }}-build-uptest-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-build-uptest-

- name: Cache Go Dependencies
- name: Cache the Go Dependencies
if: ${{ inputs.package-type == 'provider' }}
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: .work/pkg
path: ${{ steps.go.outputs.modcache }}
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-pkg-

Expand Down

0 comments on commit 1fc24e1

Please sign in to comment.