@@ -335,18 +335,23 @@ jobs:
335
335
with :
336
336
fetch-depth : 1
337
337
338
+ # Sets up the ImDisk toolkit for Windows and creates a RAM disk on drive R:.
339
+ - name : Setup ImDisk
340
+ if : runner.os == 'Windows'
341
+ uses : ./.github/actions/setup-imdisk
342
+
338
343
- name : Download Go Build Cache
339
344
id : download-go-build-cache
340
345
uses : ./.github/actions/test-cache/download
341
346
if : runner.os == 'Windows'
342
347
with :
343
348
key-prefix : test-go-build-11-${{ runner.os }}-${{ runner.arch }}
344
- cache-path : " ~ /.cache/go-cache"
349
+ cache-path : " /r /.cache/go-cache"
345
350
346
351
- name : Setup Go
347
352
uses : ./.github/actions/setup-go
348
353
with :
349
- build-cache-path : ~ /.cache/go-cache
354
+ build-cache-path : /r /.cache/go-cache
350
355
cache : false
351
356
352
357
- name : Normalize File and Directory Timestamps
@@ -385,8 +390,8 @@ jobs:
385
390
touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
386
391
fi
387
392
export TS_DEBUG_DISCO=true
388
- export GOCACHE=~ /.cache/go-cache/build
389
- export GOMODCACHE=~ /.cache/go-cache/mod
393
+ export GOCACHE=/r /.cache/go-cache/build
394
+ export GOMODCACHE=/r /.cache/go-cache/mod
390
395
echo "PATH: $PATH"
391
396
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
392
397
--packages="./..." -- $PARALLEL_FLAG -short -failfast
@@ -401,7 +406,7 @@ jobs:
401
406
uses : ./.github/actions/test-cache/upload
402
407
with :
403
408
cache-key : ${{ steps.download-go-build-cache.outputs.cache-key }}-${{ github.run_id }}-${{ github.run_attempt }}
404
- cache-path : " ~ /.cache/go-cache"
409
+ cache-path : " /r /.cache/go-cache"
405
410
override-condition : " true"
406
411
407
412
# We don't run the full test-suite for Windows & MacOS, so we just run the CLI tests on every PR.
0 commit comments