File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 9696 -
9797 name : Install gotestsum
9898 uses : go-openapi/gh-actions/install/gotestsum@9c04f383fd8d769f5f49842f6e1ae9092ea25071 # v1.4.3
99+ -
100+ name : Ensure TMP is created on windows runners
101+ # On windows, some tests require testing.TempDir to reside on the same drive as the code.
102+ # TMP is used by os.TempDir() to determine the location of temporary files.
103+ if : ${{ runner.os == 'Windows' }}
104+ shell : bash
105+ run : |
106+ TMP="${{ github.workspace }}\..\tmp"
107+ mkdir -p ${TMP}
108+ echo "TMP=${TMP}" >> "${GITHUB_ENV}"
99109 -
100110 name : Run unit tests on all modules (go1.25+ with go.work) [monorepo]
101111 if : ${{ needs.lint.outputs.is-monorepo == 'true' && steps.detect-go-version.outputs.is-gotestwork-supported == 'true' }}
@@ -117,16 +127,6 @@ jobs:
117127 -coverprofile='unit.coverage.${{ matrix.os }}-${{ matrix.go }}.out'
118128 -covermode=atomic
119129 ./...
120- -
121- name : Ensure TMP is created on windows runners
122- # On windows, some tests require testing.TempDir to reside on the same drive as the code.
123- # TMP is used by os.TempDir() to determine the location of temporary files.
124- if : ${{ runner.os == 'Windows' }}
125- shell : bash
126- run : |
127- TMP="${{ github.workspace }}\..\tmp"
128- mkdir -p ${TMP}
129- echo "TMP=${TMP}" >> "${GITHUB_ENV}"
130130 -
131131 name : Run unit tests on all modules (<go1.25 or no go.work) [monorepo]
132132 if : >
You can’t perform that action at this time.
0 commit comments