Update CI/CD Pipeline and Push Shihab API Testing - #8
Merged
Conversation
…Release-> merge all the devs update and run CI and check API Testing, Main-> run CI and CD. . and Upload Shihab API Testing File
There was a problem hiding this comment.
Pull request overview
This PR integrates Postman/Newman API testing into the main GitHub Actions CI/CD workflow and adds a new Postman collection (“Shihab’s 50 API Tests”) to be executed as part of the pipeline, while removing the now-redundant standalone API test workflow.
Changes:
- Added a new Postman collection:
collections/api_testing_shihab.json. - Updated
.github/workflows/ci-cd.ymlto introduce atestjob (Newman) and gatedeployon it. - Removed the separate
.github/workflows/api-tests.ymlworkflow in favor of the consolidated pipeline.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| collections/api_testing_shihab.json | Adds a new Postman collection intended to be executed by CI via Newman. |
| .github/workflows/ci-cd.yml | Consolidates API testing and deployment into a single workflow with job dependencies. |
| .github/workflows/api-tests.yml | Removes the standalone API test workflow after consolidation into ci-cd.yml. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
3
to
+5
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| branches: [ "main", "release", "devs" ] |
Comment on lines
+40
to
+42
| "pm.test(\"Response time is less than 1000ms\", function () {", | ||
| " pm.expect(pm.response.responseTime).to.be.below(1000);", | ||
| "});", |
Comment on lines
+32
to
+36
| "event": [ | ||
| { | ||
| "listen": "test", | ||
| "script": { | ||
| "exec": [ |
Comment on lines
+20
to
+21
| - name: Install Newman | ||
| run: npm install -g newman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.