Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: add credentials to env_vars pre running tests

Abdullah Atta6171b95f0156
diff --git a/.github/workflows/core.tests.yml b/.github/workflows/core.tests.yml
index e08bc9b76..fceec6628 100644
--- a/.github/workflows/core.tests.yml
+++ b/.github/workflows/core.tests.yml
@@ -12,7 +12,7 @@ on:
- "opened"
jobs:
- build:
+ test:
runs-on: ubuntu-latest
steps:
@@ -22,6 +22,12 @@ jobs:
with:
node-version: 16.x
- name: Prepare environment
- run: npm install
+ run: |
+ npm install
+ - name: Add environment variables
+ run: |
+ echo "EMAIL=${{ secrets.USER_EMAIL }}" >> $GITHUB_ENV
+ echo "PASSWORD=${{ secrets.USER_PASSWORD }}" >> $GITHUB_ENV
+ echo "HASHED_PASSWORD=${{ secrets.USER_HASHED_PASSWORD }}" >> $GITHUB_ENV
- name: Run all @notesnook/core tests
run: npx nx test:e2e @notesnook/core