|
64 | 64 | required: false
|
65 | 65 | default: false
|
66 | 66 | type: boolean
|
67 |
| - test-timing-cache-restore-enabled: |
| 67 | + test-timing-cache-restore: |
68 | 68 | description: Restore the gotestsum test timing data from cache.
|
69 | 69 | required: false
|
70 | 70 | default: true
|
71 | 71 | type: boolean
|
72 |
| - test-timing-cache-save-enabled: |
| 72 | + test-timing-cache-save: |
73 | 73 | description: Upload the gotestsum test timing data to cache.
|
74 | 74 | required: false
|
75 | 75 | default: true
|
@@ -144,7 +144,7 @@ jobs:
|
144 | 144 | - uses: ./.github/actions/set-up-gotestsum
|
145 | 145 | - run: mkdir -p ${{ steps.metadata.outputs.go-test-dir }}
|
146 | 146 | - uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
147 |
| - if: inputs.test-timing-cache-restore-enabled || inputs.test-timing-cache-save-enabled |
| 147 | + if: inputs.test-timing-cache-restore || inputs.test-timing-cache-save |
148 | 148 | with:
|
149 | 149 | path: ${{ steps.metadata.outputs.go-test-dir }}
|
150 | 150 | key: ${{ inputs.test-timing-cache-key }}-${{ github.run_number }}
|
@@ -646,20 +646,20 @@ jobs:
|
646 | 646 | echo "test-go-results=${test_go_results}"
|
647 | 647 | } | tee -a "$GITHUB_OUTPUT"
|
648 | 648 | # Aggregate, prune, and cache our timing data
|
649 |
| - - if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save-enabled }} |
| 649 | + - if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save }} |
650 | 650 | uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
651 | 651 | with:
|
652 | 652 | path: ${{ needs.test-matrix.outputs.go-test-dir }}
|
653 | 653 | key: ${{ inputs.test-timing-cache-key }}-${{ github.run_number }}
|
654 | 654 | restore-keys: |
|
655 | 655 | ${{ inputs.test-timing-cache-key }}-
|
656 |
| - - if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save-enabled }} |
| 656 | + - if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save }} |
657 | 657 | uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
658 | 658 | with:
|
659 | 659 | path: ${{ needs.test-matrix.outputs.go-test-dir }}
|
660 | 660 | pattern: ${{ needs.test-go.outputs.go-test-results-download-pattern }}
|
661 | 661 | merge-multiple: true
|
662 |
| - - if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save-enabled }} |
| 662 | + - if: ${{ ! cancelled() && needs.test-go.result == 'success' && inputs.test-timing-cache-save }} |
663 | 663 | name: Prune any invalid timing files
|
664 | 664 | run: |
|
665 | 665 | ls -lhR '${{ needs.test-matrix.outputs.go-test-dir }}'
|
|
0 commit comments