From 0dbd8ba31109b3bc4aa63221c0e40e3153382849 Mon Sep 17 00:00:00 2001
From: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com>
Date: Sun, 29 Sep 2024 22:19:06 -0700
Subject: [PATCH] wip
---
.github/workflows/cicd.yml | 37 ++++++++++++++++++--------------
src/oidc-guard/oidc-guard.csproj | 21 +++++++++---------
2 files changed, 31 insertions(+), 27 deletions(-)
diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml
index 809a5b1..5798937 100644
--- a/.github/workflows/cicd.yml
+++ b/.github/workflows/cicd.yml
@@ -55,6 +55,27 @@ jobs:
file: coverage.cobertura.xml
fail_ci_if_error: true
+ - name: Publish Benchmark
+ working-directory: benchmarks/oidc-guard-benchmarks
+ run: dotnet publish -c Release -o bin/publish
+
+ - name: Run Benchmark
+ working-directory: benchmarks/oidc-guard-benchmarks/bin/publish
+ run: oidc-guard-benchmarks
+
+ - name: Store benchmark result
+ uses: benchmark-action/github-action-benchmark@v1
+ with:
+ name: Benchmark.Net Benchmark
+ tool: 'benchmarkdotnet'
+ output-file-path: benchmarks/oidc-guard-benchmarks/bin/publish/BenchmarkDotNet.Artifacts/results/Sample.Benchmarks-report-full-compressed.json
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ auto-push: true
+ # Show alert with commit comment on detecting possible performance regression
+ alert-threshold: '200%'
+ comment-on-alert: true
+ fail-on-alert: false
+ alert-comment-cc-users: '@IvanJosipovic'
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
@@ -66,22 +87,6 @@ jobs:
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
- benchmark:
- name: Benchmark
- runs-on: windows-latest
- needs: build-test
- steps:
- - uses: actions/checkout@v4
-
- - name: Setup .NET Core
- uses: actions/setup-dotnet@v4
- with:
- global-json-file: global.json
-
- - name: Benchmark
- working-directory: benchmarks/oidc-guard-benchmarks
- run: dotnet run -c Release
-
create-release:
if: ${{ github.event_name != 'pull_request' }}
name: Create Release
diff --git a/src/oidc-guard/oidc-guard.csproj b/src/oidc-guard/oidc-guard.csproj
index 8729a30..52a6eaa 100644
--- a/src/oidc-guard/oidc-guard.csproj
+++ b/src/oidc-guard/oidc-guard.csproj
@@ -2,23 +2,22 @@
net9.0
- enable
+ true
+ true
enable
true
- oidc_guard
- a70c2d04-572e-41af-8710-66bacf303453
- true
- true
- true
true
- false
- true
false
- false
- false
+ enable
Speed
- true
+ false
+ false
+ true
+ oidc_guard
+ true
false
+ false
+ a70c2d04-572e-41af-8710-66bacf303453