Skip to content

Commit

Permalink
ci(node): added ability to create env file before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrellRichards committed Sep 19, 2020
1 parent 20d1586 commit 0dc9757
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
- name: Create Env File
run: |
touch .env
echo JWT_KEY="test" >> .env
echo JWT_REFRESH_KEY="test" >> .env
- name: Backend Tests
env:
JWT_SECERT=testJWT
JWT_REFRESH_KEY=testJWT
run: npm run test:node

0 comments on commit 0dc9757

Please sign in to comment.