File tree 3 files changed +17
-7
lines changed
3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 34
34
run : |
35
35
go build -v ./cmd/digger
36
36
working-directory : cli
37
-
37
+
38
38
- name : Test
39
- run : go test -v ./...
39
+ shell : bash
40
+ run : |
41
+ go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
42
+ go test -json ./... | gotestfmt
40
43
working-directory : cli
Original file line number Diff line number Diff line change @@ -47,12 +47,17 @@ jobs:
47
47
echo "is_external=true" >> $GITHUB_OUTPUT
48
48
fi
49
49
50
+ - uses : opentofu/setup-opentofu@v1
51
+ with :
52
+ tofu_version : 1.6.0
53
+
50
54
- name : Test
51
55
run : |
56
+ go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
52
57
if [ "${{ steps.pr_check.outputs.is_external }}" = "true" ]; then
53
- go test -v -tags=external ./...
58
+ go test -json -tags=external ./... | gotestfmt
54
59
else
55
- go test -v ./...
60
+ go test -json ./... | gotestfmt
56
61
fi
57
62
env :
58
63
DIGGER_LICENSE_KEY : ${{ secrets.TEST_DIGGER_LICENSE_KEY}}
Original file line number Diff line number Diff line change @@ -426,10 +426,12 @@ runs:
426
426
427
427
- uses : actions/cache/save@v4
428
428
name : cache-save
429
- if : ${{ inputs.cache-dependencies == 'true' }}
429
+ if : ${{ always() && inputs.cache-dependencies == 'true' && steps.restore_cache.outputs.cache-hit ! = 'true' }}
430
430
with :
431
- path : ${{ github.workspace }}/cache
432
- key : digger-cache-${{ hashFiles('**/cache') }}
431
+ path : |
432
+ ${{ steps.golang-env.outputs.build-cache-path }}
433
+ ${{ steps.golang-env.outputs.module-cache-path }}
434
+ key : digger-cli-cache-${{ hashFiles('.digger.go.sum') }}
433
435
434
436
branding :
435
437
icon : globe
You can’t perform that action at this time.
0 commit comments