Skip to content

Commit

Permalink
Merge pull request #60 from adam07018/master
Browse files Browse the repository at this point in the history
Finish CI and unit testing for question-backend
  • Loading branch information
zzthian authored Nov 4, 2023
2 parents 68ce4cc + f1baf85 commit 3d77e0d
Show file tree
Hide file tree
Showing 16 changed files with 2,371 additions and 114 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/question-backend.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: question-backend CI

on:
push:
branches: ['master']
pull_request:
branches: ['master']

defaults:
run:
working-directory: backend/question-backend

jobs:
question-backend_test_and_coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout Backend
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install Dependencies
run: npm install mocha chai sinon --save-dev
npm install --save-dev c8
working-directory: backend/question-backend

- name: Run Tests with Coverage
run: npm run test-with-coverage
5 changes: 2 additions & 3 deletions .github/workflows/user_profile_backend.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defaults:
working-directory: backend/user_profile_backend

jobs:
backend:
user_profile_backend_test_and_coverage:
runs-on: ubuntu-latest

steps:
Expand All @@ -31,7 +31,6 @@ jobs:
run: npm install mocha chai sinon --save-dev
npm install --save-dev nyc
working-directory: backend/user_profile_backend

- name: Run Tests with Coverage
run: npm run test-with-coverage

Loading

0 comments on commit 3d77e0d

Please sign in to comment.