Skip to content

Commit 5ce5ad2

Browse files
committed
Fix env vars in GH actions
1 parent ce038bd commit 5ce5ad2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/local-api-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
run: git clone https://github.com/gadhagod/Hyrule-Compendium-API -b v2-src v2
3333
- name: Start server
3434
run: python3 -c "from server import app; app.run()" ${{ secrets.RS2_TOKEN }} &
35+
env:
36+
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
37+
MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }}
3538
- name: Install test dependencies
3639
run: |
3740
cd tests
3841
npm i
3942
- name: Execute tests
4043
run: |
4144
cd tests
42-
env URL="http://127.0.0.1:5000" npx mocha
43-
env:
44-
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
45-
MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }}
45+
env URL="http://127.0.0.1:5000" npx mocha

0 commit comments

Comments
 (0)