Don't require vendor directory to build gotestsum.
@@ -64,7 +64,8 @@ jobs:
env:
CACHE_KEY: "matrix-setup"
run: echo "$CACHE_KEY" > .gocache.tmp
- - uses: actions/setup-go@v3 # only used by gotestsum
+ - name: Setup Go Caching
+ uses: actions/setup-go@v3 # only used by gotestsum
with:
go-version: '>=1.19.0' # decoupled from version sets, only used by gotestsum
cache: true
@@ -76,9 +77,9 @@ jobs:
repository: dnephin/gotestsum
ref: d09768c81065b404caed0855eb3ab8f11a2a4431
path: vendor/gotestsum
- - run: |
- cd vendor/gotestsum
- go install .
+ # This source code should be cached by actions/setup-go above.
+ - name: Install gotestsum
+ run: go install gotest.tools/gotestsum@1.9.0
- uses: actions/cache@v3
with:
path: test-results
