Skip to content

Commit 2cff337

Browse files
authored
Merge branch 'master' into patch-1
2 parents 45af5b2 + e942bc4 commit 2cff337

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RapidAPI Testing GitHub Actions
22

3-
This GitHub Action allows you to trigger the execution of RapidAPI Testing tests.
3+
This GitHub Action allows you to trigger the execution of [RapidAPI Testing](https://rapidapi.com/testing) tests.
44

55
## Complete example
66

@@ -20,7 +20,7 @@ jobs:
2020
location: 'AWS-US-WEST-2'
2121
environment: 'ENV_ID(OPTIONAL)'
2222
- 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 }}"
23+
run: echo "The test took ${{ steps.tstExec.outputs.time }}ms to run"; echo "The test result was ${{ steps.tstExec.outputs.successful }}"; echo "View Report - {{ steps.tstExec.outputs.reportUrl }}"
2424
```
2525
2626
## Inputs
@@ -49,12 +49,11 @@ The environment you want to run the test in. If you don't use environment omit t
4949
### `time`
5050
The time it took the test to execute, in miliseconds (1000ms=s)
5151

52-
### `succesful`
52+
### `successful`
5353
True/false based on the result of the test execution
5454

5555
### `reportUrl`
5656
URL of a human readable report of the test execution
5757

5858
## Help
59-
60-
For any help using this integration, reach out to `[email protected]`.
59+
For any help using this integration, reach out to `[email protected]`. You can also see RapidAPI Testing Guide in our [Help Center](https://docs.rapidapi.com/docs/creating-test-flows).

action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: 'RapidAPI Testing Trigger'
22
description: 'Trigger an API test on RapidAPI Testing'
3-
icon: 'globe'
4-
color: 'blue'
3+
branding:
4+
icon: 'globe'
5+
color: 'blue'
56
inputs:
67
test:
78
description: 'ID of the test to run'
@@ -16,10 +17,10 @@ inputs:
1617
outputs:
1718
time:
1819
description: 'How long the test took to execute'
19-
succesful:
20+
successful:
2021
description: 'True or false based on the outcome of the test execution'
2122
reportUrl:
2223
description: 'Url for the full test execution URL'
2324
runs:
2425
using: 'node12'
25-
main: 'index.js'
26+
main: 'index.js'

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ core.group('Execute Test', async () => {
5353

5454
// 3. Set Response Data
5555
core.setOutput("time", testResult.executionTime);
56-
core.setOutput("succesful", testResult.succesful);
56+
core.setOutput("successful", testResult.successful);
5757

5858
// 4. Fail action if test failed
59-
if (!testResult.succesful) {
59+
if (!testResult.successful) {
6060
core.setFailed(`Test execution failed. View report here: ${testTrigger.reportUrl}`);
6161
}
62-
});
62+
});

0 commit comments

Comments
 (0)