Skip to content

Commit b8abdba

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

25 files changed

+24
-1
lines changed

.github/workflows/scanapi-action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Document and Test
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+
env:
13+
USER: ${{ secrets.USER }}
14+
PASSWORD: ${{ secrets.PASSWORD }}
15+
with:
16+
scanapi_version: '==2.4.0'
17+
arguments: run ./scanapi/scanapi.yaml -c ./scanapi/scanapi.conf -o ./scanapi/scanapi-report.html
18+
- name: Upload scanapi-report.html
19+
uses: actions/upload-artifact@v2
20+
if: ${{ always() }}
21+
with:
22+
name: ScanAPI Report
23+
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)