Skip to content

fix bug with attempt number #6

fix bug with attempt number

fix bug with attempt number #6

name: Question Service CI
on:
push:
pull_request:
jobs:
build-and-run-server:
runs-on: ubuntu-latest
env:
ENV: PROD
PORT: 8004
DB_CLOUD_URI: ${{ secrets.DB_CLOUD_URI }}
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
working-directory: ./src/backend/question_backend
run: npm i
- name: Install typescript and cypress
working-directory: .
run: npm install --save-dev typescript & npm install --save-dev cypress
- name: Run test cases
working-directory: .
run: node src/backend/question_backend/index.js & npx cypress run --spec "cypress/e2e/question_service.cy.js"