-
Notifications
You must be signed in to change notification settings - Fork 6
34 lines (25 loc) · 798 Bytes
/
ci.yml
File metadata and controls
34 lines (25 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: Continuous Integration
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install HTML extra reporter
run: npm install -g newman-reporter-htmlextra
- name: Make directory for test results
run: mkdir -p testResults
- name: Run Postman tests
run: newman run "JSON Placeholder.postman_collection.json" -e "JSON Placeholder Env.postman_environment.json" -r htmlextra --reporter-htmlextra-export testResults/htmlreport.html
- name: Upload the test report
uses: actions/upload-artifact@v2
with:
name: HTMLReport
path: testResults