Automate Native Unit Test project in GitHub Actions

Strooom 1 Reputation point

Hi, for my embedded sw development, I am using Visual Studio's Native Unit Testing for all HW independent code.
Looking for further automation, I'd like to run the tests as a GitHub action (triggered by a push/commit)

I assume I need to tell the GitHub Action workflow to :
* create a virtual machine of type Windows Server
* install Visual Studio
* Build the unit test project
* Run the tests

I lack the expertise to set this up, so if anyone did this or something similar before, please let me know.

Kind regards. P

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
331 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,801 Reputation points Microsoft Vendor

    Hello @Strooom ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    Looks like you are going to build your own self-hosted runner, I suggest you can refer to these documents(guidance): Hosting your own runners.

    Besides, as you know, GitHub Actions is currently not supported in the Microsoft Q&A forum, the supported products are listed over here: (more to be added later on).

    You can start a new thread and ask this questions here: GitHub Support Community – Code to Cloud.

    Thank you for your understanding.

    Best Regards,

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments