Skip to content

Commit

Permalink
Check dotnet with ReSharper
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Apr 4, 2024
1 parent 2099c58 commit f1cec79
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/actions/setup-dotnet/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
outputs:
dotnet-version:
value: ${{ steps.setup-dotnet.outputs.dotnet-version }}

runs:
using: 'composite'
steps:
Expand All @@ -6,7 +10,8 @@ runs:
with:
vs-version: '[17.2,'

- name: Setup .NET Core SDK
- name: Setup .NET SDK
id: setup-dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/run_checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flake Checks
name: Checks

on:
workflow_call: {}
Expand Down Expand Up @@ -44,3 +44,22 @@ jobs:
- name: Run Check 📋
run: |
nix build -L --impure --expr "with builtins; (getFlake (toString ./.)).checks.\${currentSystem}.${{ matrix.check }}"
resharper:
name: Check .NET 📋
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET 🧰
id: setup-dotnet
uses: ./.github/actions/setup-dotnet

- name: InspectCode 🔍
uses: muno92/resharper_inspectcode@v1
with:
solutionPath: Launcher/Launcher.sln
dotnetVersion: ${{ steps.setup-dotnet.outputs.dotnet-version }}

0 comments on commit f1cec79

Please sign in to comment.