Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/workflows/api-tests.yml

This file was deleted.

31 changes: 28 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
name: Initial CI/CD Pipeline
name: CI/CD Pipeline (Test & Deploy)

on:
push:
branches: [ "main" ]
branches: [ "main", "release", "devs" ]

jobs:
build-and-deploy:
test:
name: Run API Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Newman
run: npm install -g newman

- name: Run all Postman collections
run: |
for file in collections/*.json; do
echo "Running $file"
newman run "$file"
done
Comment on lines +23 to +28

deploy:
name: Build & Deploy to Azure
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
Comment on lines +30 to +34
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
Loading
Loading