TestProject and GitHub Actions Integration

Hello everyone, I want to integrate my project with GitHub Actions. Looking around, I found how to connect my project to GitHub, but I’m a bit lost when it comes to using GitHub Actions to run my tests. Any help would be greatly appreciated, thank you!

2 Likes

Hi @mihalis .

Using TestProject’s built-in integration with GitHub enables you to:

  • Split your test automation into different environments
  • Synchronize entire projects with GitHub: the tests will be saved in YAML format and contain all the information to run autonomously
  • Seamlessly keep and access test history
  • Manage different versions and save all of your team’s progress
  • Run any previous test versions using TestProject CLI/Offline
  • Import various test versions back into TestProject
  • See what has changed in your tests directly on GitHub
  • Integrate your CI flow directly into GitHub repos

We don’t have a direct integration with GitHub actions CI but you can use our API to execute and retrieve data from you account.

You can create API Key from here:

https://app.testproject.io/#/integrations/api

To Getting Started with TestProject API:

https://api.testproject.io/docs/v2/

Don’t forget to Authorization before you use it.

1 Like

What I’m looking for basically, after integrating my project with GitHub, is to create a yaml file for GitHub Actions so I can integrate and run my tests in a pipeline. This is the part where I’m lost.

1 Like

any update on this request ? I too looking to integrate my project with git actions so we can have our own pipeline.

There was nothing else so we created a script that takes all your project’s jobs and runs them, and if any fail, the action fails. We placed it in GitHub Marketplace in case anyone else needs it like we did.
Here is the link: https://github.com/marketplace/actions/testproject-execute-jobs
Hopefully it helps you too.

1 Like

I’ve also struggled to find anything suitable so have just created a github action to run a single job and download reports in the various formats via the API: https://github.com/marketplace/actions/testproject-job-runner