Skip to content

Commit 79f1e47

Browse files
committed
ramdisk
1 parent 6db82ca commit 79f1e47

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -335,18 +335,23 @@ jobs:
335335
with:
336336
fetch-depth: 1
337337

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+
338343
- name: Download Go Build Cache
339344
id: download-go-build-cache
340345
uses: ./.github/actions/test-cache/download
341346
if: runner.os == 'Windows'
342347
with:
343348
key-prefix: test-go-build-11-${{ runner.os }}-${{ runner.arch }}
344-
cache-path: "~/.cache/go-cache"
349+
cache-path: "/r/.cache/go-cache"
345350

346351
- name: Setup Go
347352
uses: ./.github/actions/setup-go
348353
with:
349-
build-cache-path: ~/.cache/go-cache
354+
build-cache-path: /r/.cache/go-cache
350355
cache: false
351356

352357
- name: Normalize File and Directory Timestamps
@@ -364,32 +369,32 @@ jobs:
364369
with:
365370
key-prefix: test-go-${{ runner.os }}-${{ runner.arch }}
366371

367-
- name: Test with Mock Database
368-
id: test
369-
shell: bash
370-
run: |
371-
# if macOS, install google-chrome for scaletests. As another concern,
372-
# should we really have this kind of external dependency requirement
373-
# on standard CI?
374-
if [ "${{ matrix.os }}" == "macos-latest" ]; then
375-
brew install google-chrome
376-
fi
377-
378-
# By default Go will use the number of logical CPUs, which
379-
# is a fine default.
380-
PARALLEL_FLAG=""
381-
382-
# macOS will output "The default interactive shell is now zsh"
383-
# intermittently in CI...
384-
if [ "${{ matrix.os }}" == "macos-latest" ]; then
385-
touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
386-
fi
387-
export TS_DEBUG_DISCO=true
388-
export GOCACHE=~/.cache/go-cache/build
389-
export GOMODCACHE=~/.cache/go-cache/mod
390-
echo "PATH: $PATH"
391-
gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
392-
--packages="./..." -- $PARALLEL_FLAG -short -failfast
372+
# - name: Test with Mock Database
373+
# id: test
374+
# shell: bash
375+
# run: |
376+
# # if macOS, install google-chrome for scaletests. As another concern,
377+
# # should we really have this kind of external dependency requirement
378+
# # on standard CI?
379+
# if [ "${{ matrix.os }}" == "macos-latest" ]; then
380+
# brew install google-chrome
381+
# fi
382+
383+
# # By default Go will use the number of logical CPUs, which
384+
# # is a fine default.
385+
# PARALLEL_FLAG=""
386+
387+
# # macOS will output "The default interactive shell is now zsh"
388+
# # intermittently in CI...
389+
# if [ "${{ matrix.os }}" == "macos-latest" ]; then
390+
# touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
391+
# fi
392+
# export TS_DEBUG_DISCO=true
393+
# export GOCACHE=/r/.cache/go-cache/build
394+
# export GOMODCACHE=/r/.cache/go-cache/mod
395+
# echo "PATH: $PATH"
396+
# gotestsum --junitfile="gotests.xml" --jsonfile="gotests.json" \
397+
# --packages="./..." -- $PARALLEL_FLAG -short -failfast
393398

394399
- name: Upload Test Cache
395400
uses: ./.github/actions/test-cache/upload
@@ -401,7 +406,7 @@ jobs:
401406
uses: ./.github/actions/test-cache/upload
402407
with:
403408
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"
405410
override-condition: "true"
406411

407412
# We don't run the full test-suite for Windows & MacOS, so we just run the CLI tests on every PR.

0 commit comments

Comments
 (0)