forked from scanapi/scanapi
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.43 KB
/
run-examples.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
name: ScanAPI Examples
on:
pull_request:
push:
branches:
- main
jobs:
poke-api:
runs-on: ubuntu-latest
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@v3
- name: Run Examples
uses: ./.github/actions/run_examples
with:
api-name: PokeAPI
command: "poetry run scanapi run ./examples/pokeapi/scanapi.yaml -c ./examples/pokeapi/scanapi.conf -o pokeapi.html"
output-path: pokeapi.html
httpbin-api:
runs-on: ubuntu-latest
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@v3
- name: Run Examples
uses: ./.github/actions/run_examples
with:
api-name: httpbin.org
command: "poetry run scanapi run ./examples/httpbin-api/httpbin.yaml -c ./examples/httpbin-api/scanapi.conf -o httpbin.html"
output-path: httpbin.html
demo-api:
runs-on: ubuntu-latest
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@v3
- name: Run Examples
env:
BASE_URL: "https://demo-api.fly.dev/api/v1/"
USER: "scanapi-workflow"
PASSWORD: Q*jW@p8pVmHwm2RwQd8ZR8LK
uses: ./.github/actions/run_examples
with:
api-name: Demo API
command: "poetry run scanapi run ./examples/demo-api/scanapi.yaml -c ./examples/demo-api/scanapi.conf -o demo-api.html"
output-path: demo-api.html