test: use env variable variables in login.test.js

This commit is contained in:
a632079
2020-09-07 20:55:04 +08:00
parent 9aed821057
commit bc71f537ad
2 changed files with 8 additions and 3 deletions
+4
View File
@@ -26,6 +26,10 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
name: Install dependencies
- name: Set Test Env
run: |
export NCM_API_TEST_LOGIN_PHONE=${{ secrets.NCM_API_TEST_LOGIN_PHONE }}
export NCM_API_TEST_LOGIN_PASSWORD=${{ secrets.NCM_API_TEST_LOGIN_PASSWORD }}
- name: Test
run: npm test
lint: