add env vars for livekit tests

This commit is contained in:
timurgordon
2025-01-23 13:07:35 +00:00
parent 02128e69ba
commit ac19671469
3 changed files with 13 additions and 1 deletions

View File

@@ -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}}

View File

@@ -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}}

View File

@@ -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 {