Fixed an exception which happens when PutAsync is used more than once… #1550
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Perf | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: test | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- branch: 'v2.9' | |
- branch: 'latest' | |
- branch: 'main' | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
NUGET_XMLDOC_MODE: skip | |
steps: | |
- name: Install nats | |
run: | | |
rel=$(curl https://api.mtmk.dev/gh/v1/releases/tag/nats-io/natscli/latest | sed s/v//) | |
wget https://github.com/nats-io/natscli/releases/download/v$rel/nats-$rel-linux-amd64.zip | |
unzip nats-$rel-linux-amd64.zip | |
sudo mv nats-$rel-linux-amd64/nats /usr/local/bin | |
branch=$(curl https://api.mtmk.dev/gh/v1/releases/tag/nats-io/nats-server/${{ matrix.config.branch }}) | |
for i in 1 2 3 | |
do | |
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@$branch | PREFIX=. sh && break || sleep 30 | |
done | |
sudo mv nats-server /usr/local/bin | |
- name: Check nats | |
run: | | |
nats --version | |
nats-server -v | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.x' | |
- name: Release Build | |
run: dotnet build -c Release tests/NATS.Client.Perf/NATS.Client.Perf.csproj | |
- name: Perf Test | |
run: ./tests/NATS.Client.Perf/bin/Release/net8.0/NATS.Client.Perf |