Skip to content

Commit 8787a3b

Browse files
authored
Merge pull request #5 from RapidAPI/status_enhancements
Making the action backward compatible
2 parents 52f25a7 + 15c2f1e commit 8787a3b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ dist
100100
.dynamodb/
101101

102102
# TernJS port file
103-
.tern-port
103+
.tern-port

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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.successful }}"; 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.computedStatus }}"; echo "View Report - ${{ steps.tstExec.outputs.reportUrl }}"
2424
```
2525
2626
## Inputs
@@ -47,13 +47,16 @@ The environment you want to run the test in. If you don't use environment omit t
4747
## Outputs
4848

4949
### `time`
50-
The time it took the test to execute, in miliseconds (1000ms=s)
50+
The time it took the test to execute, in milliseconds (1000ms=s)
5151

5252
### `successful`
5353
True/false based on the result of the test execution
5454

5555
### `reportUrl`
56-
URL of a human readable report of the test execution
56+
URL of a human-readable report of the test execution
57+
58+
### `computedStatus`
59+
A human-readable test status that matches the status values on the test dashboard in the UI
5760

5861
## Help
5962
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).

index.js

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

5454
// 3. Set Response Data
5555
core.setOutput("time", testResult.executionTime);
56+
core.setOutput("succesful", testResult.succesful);
5657
core.setOutput("successful", testResult.successful);
58+
core.setOutput("computedStatus", testResult.computedStatus);
5759

5860
// 4. Fail action if test failed
5961
if (!testResult.successful) {

0 commit comments

Comments
 (0)