DEV Community

Cover image for Run InspectCode in your GitHub Actions
Jozef Izso
Jozef Izso

Posted on • Originally published at izsak.net

Run InspectCode in your GitHub Actions

When you build .NET projects and you are using GitHub Actions to build your code, you cna now run code inspections with InspectCode without hassle.

InspectCode is a tool from the free ReSharper Command Line Tools (CTL). It can do solution-wide analysis of .NET code.

To use it in GitHub Actions, just add this code to your workflow file:

steps:
- uses: goit/setup-resharper@v1
  with:
    version: '2020.1'
- run: InspectCode SolutionFile.sln

The goit/setup-resharper action will download the ReSharper CTL and cache it locally (using the actions/tool-cache). ReSharper tools will be added to the %PATH% variable so you can use them anywhere in your build scripts.

As ReSharper CTL tools are supported on Windows, Linux and macOS (versions 2019.3 and newer) you can use the also for non-Windows builds. The setup action supports any ReSharper CTL newer then 2018.2.

Go to GitHub Marketplace to use this action, or checkout the source code at https://github.com/goit/setup-resharper

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay