File tree Expand file tree Collapse file tree 1 file changed +34
-32
lines changed
Expand file tree Collapse file tree 1 file changed +34
-32
lines changed Original file line number Diff line number Diff line change 11name : Automated API tests using Postman CLI
22on :
3- push :
4- branches :
5- - main
6- - develop
7- - feature/postman
8- pull_request :
9- branches :
10- - main
11- - develop
12- workflow_dispatch :
3+ push :
4+ branches :
5+ - main
6+ - develop
7+ - feature/postman
8+ pull_request :
9+ branches :
10+ - main
11+ - develop
12+ workflow_dispatch :
1313jobs :
14- automated-api-tests :
15- runs-on : ubuntu-latest
16- env :
17- POSTMAN_API_KEY : ${{ secrets.POSTMAN_API_KEY }}
18- steps :
19- - uses : actions/checkout@v4
20- - name : Install Postman CLI
21- run : |
22- curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
23- - name : Login to Postman CLI
24- run : postman login --with-api-key "$POSTMAN_API_KEY"
25- - name : Run API tests
26- run : |
27- mkdir -p reports
28- postman collection run "Feedlink" \
29- --reporters cli,junit \
30- --reporter-junit-export reports/junit.xml
31- - name : Upload JUnit report
32- uses : actions/upload-artifact@v4
33- with :
34- name : postman-junit
35- path : reports/junit.xml
14+ automated-api-tests :
15+ runs-on : ubuntu-latest
16+ env :
17+
18+ POSTMAN_API_KEY : ${{ secrets.POSTMAN_API_KEY }}
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Install Postman CLI
22+ run : |
23+ curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
24+ - name : Login to Postman CLI
25+ run : postman login --with-api-key "$POSTMAN_API_KEY"
26+ - name : Run API tests
27+ run : |
28+ mkdir -p reports
29+ postman pull \
30+ postman collection run "Feedlink" \
31+ --reporters cli,junit \
32+ --reporter-junit-export reports/junit.xml
33+ - name : Upload JUnit report
34+ uses : actions/upload-artifact@v4
35+ with :
36+ name : postman-junit
37+ path : reports/junit.xml
You can’t perform that action at this time.
0 commit comments