Merge pull request #73 from kohkaixun/master #26
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
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 |