Automate Native Unit Test project in GitHub Actions

Strooom 1 Reputation point
2021-01-25T16:31:45.11+00:00

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

Developer technologies Visual Studio Testing
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2021-01-26T08:22:27.007+00:00

    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: https://learn.microsoft.com/en-us/answers/products/ (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,
    Tianyu

    • 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.