generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from adam07018/master
Finish CI and unit testing for question-backend
- Loading branch information
Showing
16 changed files
with
2,371 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.