Prerequisites
- Git Installed.
- GitHub repository with Bruno collection.
Automate API Testing with GitHub Actions
- Ensure your Bruno collections are properly organized in your repository:
- In your repository, create the following directory structure:
- Create a new file
.github/workflows/api-tests.ymlsample script:
- Commit and push your workflow file:
-
Monitor the workflow:
- Go to your GitHub repository
- Click on the “Actions” tab
- You should see your workflow running
-
View results:
- Once completed, download the test results from the artifacts section
- Open
results.htmlin your browser for detailed reports