Skip to content

Commit 81fe95c

Browse files
committed
Fix benchmark dependencies
* Benchmarkdotnet requires a recent version of Microsoft.CodeAnalysis.Workspace, but the analyzer itself must be kept at the lowest possible version
1 parent 15b2f28 commit 81fe95c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
workflow_dispatch:
67

78
permissions:
89
contents: write
@@ -26,6 +27,7 @@ jobs:
2627

2728
- name: Store benchmark result
2829
uses: benchmark-action/[email protected]
30+
if: ${{ github.event_name == 'push' }}
2931
with:
3032
name: AwesomeAssertions.Analyzers Benchmark
3133
tool: 'benchmarkdotnet'

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,4 +261,6 @@ __pycache__/
261261
*.pyc
262262
/tools
263263

264-
coverage.cobertura.xml
264+
coverage.cobertura.xml
265+
266+
BenchmarkDotNet.Artifacts/

src/AwesomeAssertions.Analyzers.BenchmarkTests/AwesomeAssertions.Analyzers.BenchmarkTests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" VersionOverride="4.14.0" />
1011
<PackageReference Include="BenchmarkDotNet" />
1112
</ItemGroup>
1213

0 commit comments

Comments
 (0)