Skip to content

Commit

Permalink
Disable the Windows Memory Tests (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
stebet authored Jan 8, 2025
1 parent 44d2877 commit af04c71
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet
- name: Setup dotnet 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'

- name: Setup dotnet 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
Expand All @@ -184,22 +189,26 @@ jobs:
- name: Check nats-server
run: nats-server -v

- name: Get tools
run: |
Invoke-WebRequest https://download.jetbrains.com/resharper/JetBrains.dotMemoryUnit.3.2.20220510.zip -OutFile dotMemoryUnit.zip
Expand-Archive dotMemoryUnit.zip
$current_path = (Get-Item .).FullName
echo "$current_path\dotMemoryUnit" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
dotnet tool install --global NUnit.ConsoleRunner.NetCore
# Skip the memory tests for now as they are not stable

# - name: Get tools
# run: |
# Invoke-WebRequest https://download.jetbrains.com/resharper/JetBrains.dotMemoryUnit.3.2.20220510.zip -OutFile dotMemoryUnit.zip
# Expand-Archive dotMemoryUnit.zip
# $current_path = (Get-Item .).FullName
# echo "$current_path\dotMemoryUnit" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# dotnet tool install --global NUnit.ConsoleRunner.NetCore

- name: Build
run: dotnet build -c Release

- name: Memory Test (net6.0)
run: |
tasklist | grep -i nats-server && taskkill -F -IM nats-server.exe
nats-server.exe -v
dotMemoryUnit $env:userprofile\.dotnet\tools\nunit.exe --propagate-exit-code -- .\tests\NATS.Client.Core.MemoryTests\bin\Release\net6.0\NATS.Client.Core.MemoryTests.dll
# Skip the memory tests for now as they are not stable

# - name: Memory Test (net6.0)
# run: |
# tasklist | grep -i nats-server && taskkill -F -IM nats-server.exe
# nats-server.exe -v
# dotMemoryUnit $env:userprofile\.dotnet\tools\nunit.exe --propagate-exit-code -- .\tests\NATS.Client.Core.MemoryTests\bin\Release\net6.0\NATS.Client.Core.MemoryTests.dll

- name: Platform Test
run: |
Expand Down

0 comments on commit af04c71

Please sign in to comment.