Skip to content

Commit 358fe33

Browse files
committed
Testing github action for website tutorial
1 parent a4dc84e commit 358fe33

25 files changed

+21
-1
lines changed

.github/workflows/scanapi-action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run tests
2+
on:
3+
pull_request
4+
5+
jobs:
6+
scanapi:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Run automated API tests
11+
uses: scanapi/github-action@v1
12+
with:
13+
scanapi_version: '==2.4.0'
14+
arguments: run ./scanapi/scanapi.yaml -c ./scanapi/scanapi.conf -o ./scanapi/scanapi-report.html
15+
- name: Upload scanapi-report.html
16+
uses: actions/upload-artifact@v2
17+
if: ${{ always() }}
18+
with:
19+
name: ScanAPI Report
20+
path: ./scanapi/scanapi-report.html
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

demo-api/scanapi.yaml renamed to scanapi/scanapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
endpoints:
22
- name: snippets-api
3-
path: ${BASE_URL}
3+
path: http://demo.scanapi.dev/api/v1/
44
headers:
55
Content-Type: application/json
66
requests:
File renamed without changes.

0 commit comments

Comments
 (0)