add env vars for livekit tests
This commit is contained in:
4
.github/workflows/hero_build_linux.yml
vendored
4
.github/workflows/hero_build_linux.yml
vendored
@@ -91,3 +91,7 @@ jobs:
|
||||
- name: Do all the basic tests
|
||||
run: |
|
||||
./test_basic.vsh
|
||||
env:
|
||||
LIVEKIT_API_KEY: ${{secrets.LIVEKIT_API_KEY}}
|
||||
LIVEKIT_API_SECRET: ${{secrets.LIVEKIT_API_SECRET}}
|
||||
LIVEKIT_URL: ${{secrets.LIVEKIT_URL}}
|
||||
|
||||
4
.github/workflows/hero_build_macos.yml
vendored
4
.github/workflows/hero_build_macos.yml
vendored
@@ -64,3 +64,7 @@ jobs:
|
||||
- name: Do all the basic tests
|
||||
run: |
|
||||
./test_basic.vsh
|
||||
env:
|
||||
LIVEKIT_API_KEY: ${{secrets.LIVEKIT_API_KEY}}
|
||||
LIVEKIT_API_SECRET: ${{secrets.LIVEKIT_API_SECRET}}
|
||||
LIVEKIT_URL: ${{secrets.LIVEKIT_URL}}
|
||||
|
||||
@@ -3,8 +3,12 @@ module livekit
|
||||
import os
|
||||
import freeflowuniverse.herolib.osal
|
||||
|
||||
const env_file = '${os.dir(@FILE)}/.env'
|
||||
|
||||
fn testsuite_begin() ! {
|
||||
osal.load_env_file('${os.dir(@FILE)}/.env')!
|
||||
if os.exists(env_file) {
|
||||
osal.load_env_file(env_file)!
|
||||
}
|
||||
}
|
||||
|
||||
fn new_test_client() Client {
|
||||
|
||||
Reference in New Issue
Block a user