Skip to content

Merge pull request #73 from kohkaixun/master #26

Merge pull request #73 from kohkaixun/master

Merge pull request #73 from kohkaixun/master #26

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