-
-
Notifications
You must be signed in to change notification settings - Fork 3
99 lines (88 loc) · 2.44 KB
/
ci.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Test
on:
push:
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
# httpbin.org is not highly available, so we use a local instance instead.
# This clause will set up one, available via Docker networking at 'http://httpbin:80'.
# Thus, all the tests below must set 'insecure' to 'true' to be able to use the 'http' protocol.
httpbin:
image: kennethreitz/httpbin
steps:
- uses: actions/checkout@v4
- name: Smoke test
uses: ./
with:
files: |-
tests/smoke test.http
insecure: true
- name: Test multuple input files
uses: ./
with:
files: |-
./tests/smoke test.http
./tests/404.http
insecure: true
- name: Test environment file
uses: ./
with:
files: |-
./tests/environment file.http
env: test
env_file: ./tests/http.env.json
insecure: true
- name: Test private environment file
uses: ./
with:
files: |-
./tests/private environment file.http
env: test
env_file: ./tests/http.env.json
private_env_file: ./tests/http.private.env.json
insecure: true
- name: Test environment variables
uses: ./
with:
files: |-
./tests/environment variables.http
env_variables: |-
host=httpbin
insecure: true
- name: Test private environment variables
uses: ./
with:
files: |-
./tests/private environment variables.http
env_variables: |-
host=httpbin
private_env_variables: |-
path=200
insecure: true
- name: Test multiple environment variables
uses: ./
with:
files: |-
./tests/private environment variables.http
env_variables: |-
host=httpbin
path=200
insecure: true
- name: Test multiple private environment variables
uses: ./
with:
files: |-
./tests/private environment variables.http
private_env_variables: |-
host=httpbin
path=200
insecure: true
- name: Test report generation
uses: ./
with:
files: |-
tests/smoke test.http
report: true
insecure: true