Skip to content

Commit

Permalink
Fix C# CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Apr 30, 2024
1 parent d2d238c commit 5312683
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ jobs:
working-directory: ./csharp
run: dotnet test --framework net${{ matrix.dotnet }} "-l:html;LogFileName=TestReport.html" --results-directory . -warnaserror

- name: Export dotnet framework
run: export DOTNET_FRAMEWORK='dotnet${{ matrix.dotnet }}'

- uses: ./.github/workflows/test-benchmark
with:
language-flag: -csharp

- name: Upload test reports
if: always()
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-benchmark/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ runs:

- shell: bash
working-directory: ./benchmarks
run: ./install_and_test.sh -no-tls -minimal -only-glide -data 1 -tasks 10 ${{ inputs.language-flag }}
run: echo $DOTNET_FRAMEWORK && ./install_and_test.sh -no-tls -minimal -only-glide -data 1 -tasks 10 ${{ inputs.language-flag }}
4 changes: 3 additions & 1 deletion benchmarks/install_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ function runNodeBenchmark(){
}

function runCSharpBenchmark(){
DEFAULT_FRAMEWORK='net6.0'
FRAMEWORK=${DOTNET_FRAMEWORK:-$DEFAULT_FRAMEWORK}
cd ${BENCH_FOLDER}/csharp
dotnet clean
dotnet build --configuration Release /warnaserror
dotnet run --configuration Release --resultsFile=../$1 --dataSize $2 --concurrentTasks $concurrentTasks --clients $chosenClients --host $host --clientCount $clientCount $tlsFlag $portFlag $minimalFlag
dotnet run --framework ${FRAMEWORK} --configuration Release --resultsFile=../$1 --dataSize $2 --concurrentTasks $concurrentTasks --clients $chosenClients --host $host --clientCount $clientCount $tlsFlag $portFlag $minimalFlag
}

function runJavaBenchmark(){
Expand Down

0 comments on commit 5312683

Please sign in to comment.