File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,6 +117,16 @@ jobs:
117117 -coverprofile='unit.coverage.${{ matrix.os }}-${{ matrix.go }}.out'
118118 -covermode=atomic
119119 ./...
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}"
120130 -
121131 name : Run unit tests on all modules (<go1.25 or no go.work) [monorepo]
122132 if : >
Original file line number Diff line number Diff line change 5454 -
5555 name : Install gotestsum
5656 uses : go-openapi/gh-actions/install/gotestsum@9c04f383fd8d769f5f49842f6e1ae9092ea25071 # v1.4.3
57+ -
58+ name : Ensure TMP is created on windows runners
59+ # On windows, some tests require testing.TempDir to reside on the same drive as the code.
60+ # TMP is used by os.TempDir() to determine the location of temporary files.
61+ if : ${{ runner.os == 'Windows' }}
62+ shell : bash
63+ run : |
64+ TMP="${{ github.workspace }}\..\tmp"
65+ mkdir -p ${TMP}
66+ echo "TMP=${TMP}" >> "${GITHUB_ENV}"
5767 -
5868 name : Run unit tests
5969 run : >
You can’t perform that action at this time.
0 commit comments