Skip to content

Commit f71729c

Browse files
committed
testenv, apikey
1 parent 07e1ce7 commit f71729c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
run: |
5858
cd cables_api/
5959
npm run test:servers
60+
env:
61+
CABLES_USER_APIKEY: ${{ secrets.cables_user_apikey }}
6062
- name: checkout electron for exe export
6163
uses: actions/checkout@v4
6264
with:

shared/api/cables.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ export default class Cables extends SharedUtil
239239
return this._config.env === "nightly";
240240
}
241241

242+
isTestEnv()
243+
{
244+
if (this._config.tests) return this._config.tests.is_testenvironment === true;
245+
return false;
246+
}
247+
242248
getEnv()
243249
{
244250
return this._config.env;

0 commit comments

Comments
 (0)