-
-
Notifications
You must be signed in to change notification settings - Fork 102
52 lines (47 loc) · 1.62 KB
/
run-examples.yml
File metadata and controls
52 lines (47 loc) · 1.62 KB
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
47
48
49
50
51
52
name: ScanAPI Examples
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
poke-api:
runs-on: ubuntu-latest
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run Examples
uses: ./.github/actions/run_examples
with:
api-name: PokeAPI
command: "uv run scanapi run ./examples/pokeapi/scanapi.yaml -c ./examples/pokeapi/scanapi.conf -o pokeapi.html"
output-path: pokeapi.html
httpbingo-api:
runs-on: ubuntu-latest
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run Examples
uses: ./.github/actions/run_examples
with:
api-name: httpbingo.org
command: "uv run scanapi run ./examples/httpbingo-api/httpbingo.yaml -c ./examples/httpbingo-api/scanapi.conf -o httpbingo.html"
output-path: httpbingo.html
demo-api:
runs-on: ubuntu-latest
steps:
- name: Checkout ScanAPI repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- 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: "uv run scanapi run ./examples/demo-api/scanapi.yaml -c ./examples/demo-api/scanapi.conf -o demo-api.html"
output-path: demo-api.html