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