You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This GitHub Action allows you to trigger the execution of RapidAPI Testing tests.
4
+
5
+
## Complete example
6
+
7
+
```yaml
8
+
on: [push]
9
+
10
+
jobs:
11
+
run_api_test:
12
+
runs-on: ubuntu-latest
13
+
name: Execute RapidAPI API Tests
14
+
steps:
15
+
- name: Execute Tests
16
+
id: tstExec
17
+
uses: RapidAPI/gh-api-testing-trigger@master
18
+
with:
19
+
test: 'YOUR_TEST_ID'
20
+
location: 'AWS-US-WEST-2'
21
+
environment: 'ENV_ID(OPTIONAL)'
22
+
- name: Show Results
23
+
run: echo "The test took ${{ steps.tstExec.outputs.time }}ms to run"; echo "The test result was ${{ steps.tstExec.outputs.succesful }}"; echo "View Report - {{ steps.tstExec.outputs.reportUrl }}"
24
+
```
25
+
26
+
## Inputs
27
+
28
+
### `test`
29
+
**Required** The ID of the test you wish to execute.
30
+
31
+
### `location`
32
+
**Required** The location the test will be executed in. Options:
33
+
34
+
- `AWS-US-EAST-1` : N. Virginia
35
+
- `AWS-US-WEST-2` : Oregon
36
+
- `AWS-AP-EAST-1` : Hong Kong
37
+
- `AWS-AP-SOUTH-1` : Mumbai
38
+
- `AWS-AP-SOUTHEAST-1` :
39
+
- `AWS-AP-NORTHEAST-1` : Tokyo
40
+
- `AWS-EU-CENTRAL-1` : Frankfurt
41
+
- `AWS-EU-WEST-3` : Paris
42
+
- `AWS-SA-EAST-1` : São Paulo
43
+
44
+
### `location`
45
+
The environment you want to run the test in. If you don't use environment omit this parameter
46
+
47
+
## Outputs
48
+
49
+
### `time`
50
+
The time it took the test to execute, in miliseconds (1000ms=s)
51
+
52
+
### `succesful`
53
+
True/false based on the result of the test execution
54
+
55
+
### `reportUrl`
56
+
URL of a human readable report of the test execution
57
+
58
+
## Help
59
+
60
+
For any help using this integration, reach out to `[email protected]`.
0 commit comments