Could You help me? I use NUnit framework to test my .NET project. And I want to run my tests via GitHub Actions.

What should be included in the assembly of my project? Maybe there are some standard examples?

1 Answer 1


You do not need to include anything into your assembly to run your tests using GitHub Actions. Just create workflow file in .github/workflows folder with the following content (assuming that you have .NET Core project):

name: Tests

on: push

    name: Unit Testing
    runs-on: windows-latest
      - uses: actions/[email protected]
      - run: dotnet test

dotnet is pre-installed on windows machine but is not pre-installed on macos and ubuntu. So, you have to install dotnet by adding an extra step in case you want to run it on one of these machines. You can use actions/setup-dotnet action for this purpose.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.