Skip to content

Commit 361f641

Browse files
committed
Making the action backward compatible
1 parent e942bc4 commit 361f641

File tree

3 files changed

+111
-4
lines changed

3 files changed

+111
-4
lines changed

.gitignore

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,103 @@
1-
node_modules/
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
jspm_packages/
42+
43+
# TypeScript v1 declaration files
44+
typings/
45+
46+
# TypeScript cache
47+
*.tsbuildinfo
48+
49+
# Optional npm cache directory
50+
.npm
51+
52+
# Optional eslint cache
53+
.eslintcache
54+
55+
# Microbundle cache
56+
.rpt2_cache/
57+
.rts2_cache_cjs/
58+
.rts2_cache_es/
59+
.rts2_cache_umd/
60+
61+
# Optional REPL history
62+
.node_repl_history
63+
64+
# Output of 'npm pack'
65+
*.tgz
66+
67+
# Yarn Integrity file
68+
.yarn-integrity
69+
70+
# dotenv environment variables file
71+
.env
72+
.env.test
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
77+
# Next.js build output
78+
.next
79+
80+
# Nuxt.js build / generate output
81+
.nuxt
82+
dist
83+
84+
# Gatsby files
85+
.cache/
86+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
87+
# https://nextjs.org/blog/next-9-1#public-directory-support
88+
# public
89+
90+
# vuepress build output
91+
.vuepress/dist
92+
93+
# Serverless directories
94+
.serverless/
95+
96+
# FuseBox cache
97+
.fusebox/
98+
99+
# DynamoDB Local files
100+
.dynamodb/
101+
102+
# TernJS port file
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)