diff --git a/.github/workflows/hero_build_linux.yml b/.github/workflows/hero_build_linux.yml index 63187346..d1325cc2 100644 --- a/.github/workflows/hero_build_linux.yml +++ b/.github/workflows/hero_build_linux.yml @@ -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}} diff --git a/.github/workflows/hero_build_macos.yml b/.github/workflows/hero_build_macos.yml index 22474fed..ec0d22dd 100644 --- a/.github/workflows/hero_build_macos.yml +++ b/.github/workflows/hero_build_macos.yml @@ -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}} diff --git a/lib/clients/livekit/room_test.v b/lib/clients/livekit/room_test.v index 0e19e3e7..2bd9d3fe 100644 --- a/lib/clients/livekit/room_test.v +++ b/lib/clients/livekit/room_test.v @@ -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 {