ci: extend pagefile size on Windows (#1478)

Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
This commit is contained in:
Edoardo Vacchi
2023-05-17 15:11:37 +02:00
committed by GitHub
parent 34324031cb
commit ee7b95554a

View File

@@ -76,6 +76,15 @@ jobs:
go-version: ${{ matrix.go-version }}
cache: true
# Ensure the pagefile is large enough to execute tests like TestStore_hammer_close on Windows.
- name: configure Pagefile
uses: al-cheb/configure-pagefile-action@v1.2
if: runner.os == 'Windows'
with:
minimum-size: 8GB
maximum-size: 16GB
disk-root: "D:"
# Run -race could be really slow without -short, so run them together on this workflow.
# Since -short is not added in the scratch tests, all the tests are run in CI in practice.
- run: make test go_test_options='-timeout 10m -race -short'