Skip to content

Remove unused concurrent hash map. #6

Remove unused concurrent hash map.

Remove unused concurrent hash map. #6

Workflow file for this run

name: Newman Integration Tests
on:
push:
branches: [dev, main]
paths:
- "src/**"
- "postman/**"
pull_request:
branches: [dev, main]
paths:
- "src/**"
- "postman/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "21"
- name: Cache Maven Dependencies
uses: actions/cache@v3
with:
path: ~/.m2
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-${{ runner.os }}-
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Build & Run Tests with Maven
run: mvn clean package -DskipTests
- name: Install Newman and Reporters
run: npm install -g newman newman-reporter-html newman-reporter-json
- name: Ensure Postman Collection Exists
run: |
if [ ! -f postman/sales-agent.postman_collection.json ]; then
echo "ERROR: Postman collection file not found!"
exit 1
fi
- name: Run Newman Tests and Generate Report
run: |
TIMESTAMP=$(date +"%Y-%m-%d")
mkdir -p test-reports
newman run postman/sales-agent.postman_collection.json \
--reporters cli,json,html \
--reporter-json-export test-reports/newman-report-$TIMESTAMP.json \
--reporter-html-export test-reports/newman-report-$TIMESTAMP.html
env:
API_BASE_URL: https://sales-agent-3wyf.onrender.com
- name: Upload Test Reports
uses: actions/upload-artifact@v4
with:
name: newman-test-reports
path: test-reports/
retention-days: 7