Skip to content

Commit

Permalink
Merge pull request #293 from DarrellRichards/ci/backend-support
Browse files Browse the repository at this point in the history
Adding Backend tests support to CI
  • Loading branch information
Whamo12 committed Sep 24, 2020
2 parents cd5fa3e + 76d01f3 commit 3d72087
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- 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
run: npm run test:node
2 changes: 1 addition & 1 deletion src/routes/user.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createConnection, getConnection, Entity, getRepository } from 'typeorm';
const userController = require('./user.controller');
import { User } from '../entity/user';
import { User } from '../entity/User';
import { v4 as uuidv4 } from 'uuid';
import { generateHash } from '../utilities/password.utility';
import { Config } from '../entity/Config';
Expand Down

0 comments on commit 3d72087

Please sign in to comment.