Skip to content

Commit

Permalink
Merge pull request #7 from zeroreign/feature/add-backend_graphql-inte…
Browse files Browse the repository at this point in the history
…gration

Feature/add backend graphql integration
  • Loading branch information
zeroreign authored May 14, 2024
2 parents f7a3f21 + a102a21 commit 07ccf13
Show file tree
Hide file tree
Showing 7 changed files with 381 additions and 14 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/Frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,24 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./frontend/package-lock.json
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test -- --coverage
- name: Install Backend Dependencies
run: |
npm ci &&
npm run build &&
npm run start:prod --prefix ../backend/ &
working-directory: ./backend
- name: Install Frontend Dependencies
run: |
npm ci &&
npm run lint &&
npm run build
- name: Run Jest Test
run: npm test -- --coverage
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"start:prod": "node dist/src/main",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
Expand Down
3 changes: 2 additions & 1 deletion frontend/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom';
import 'cross-fetch/polyfill';
Loading

0 comments on commit 07ccf13

Please sign in to comment.