From fcf3e145699c4f9c1c953cbf64c2a425af3757f3 Mon Sep 17 00:00:00 2001 From: Aarav Borthakur Date: Tue, 30 Jul 2024 23:38:19 -0700 Subject: [PATCH] Add server as env var for tests GH action --- .github/workflows/local-api-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/local-api-tests.yml b/.github/workflows/local-api-tests.yml index 3d8d5e3..7f30f92 100644 --- a/.github/workflows/local-api-tests.yml +++ b/.github/workflows/local-api-tests.yml @@ -31,11 +31,12 @@ jobs: - name: Clone v2-src run: git clone https://github.com/gadhagod/Hyrule-Compendium-API -b v2-src v2 - name: Start server - run: python3 -c "from server import app; app.run()" ${{ secrets.RS2_TOKEN }} & + run: python3 -c "from server import app; app.run()" & env: MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }} MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }} RS2_TOKEN: ${{ secrets.RS2_TOKEN }} + RS2_SERVER: ${{ secrets.RS2_SERVER }} - name: Install test dependencies run: |