diff --git a/.github/actions/setup-dotnet/action.yml b/.github/actions/setup-dotnet/action.yml index f939f093..0a8539c8 100644 --- a/.github/actions/setup-dotnet/action.yml +++ b/.github/actions/setup-dotnet/action.yml @@ -1,3 +1,7 @@ +outputs: + dotnet-version: + value: ${{ steps.setup-dotnet.outputs.dotnet-version }} + runs: using: 'composite' steps: @@ -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 diff --git a/.github/workflows/run_checks.yml b/.github/workflows/run_checks.yml index dfca9abb..07e5dc90 100644 --- a/.github/workflows/run_checks.yml +++ b/.github/workflows/run_checks.yml @@ -1,4 +1,4 @@ -name: Flake Checks +name: Checks on: workflow_call: {} @@ -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 }}