Skip to content

Redux Room Admin Cypress exercise template and solution tests #5

Redux Room Admin Cypress exercise template and solution tests

Redux Room Admin Cypress exercise template and solution tests #5

Workflow file for this run

name: Mocha Tests
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
mocha-tests:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.JS ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: NPM install, build and test
run: |
cd Mocha/mongo_express_api
npm install
npm test
env:
DBHOST: ${{ secrets.DBHOST }}
TOKEN_SECRET: ${{ secrets.TOKEN_SECRET }}
JWT_EXPIRES_IN: ${{ secrets.JWT_EXPIRES_IN }}