Skip to content

Patch server.yml

Patch server.yml #2

Workflow file for this run

name: Express.js, Postman backend - SEManager
# On every push, the Backend shall be tested.
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
# Caching in monorepos (server)
cache-dependency-path: server/package-lock.json
- run: |
cd server
npm ci
test:
runs-on: ubuntu-latest
env:
MONGODB_URI: "mongodb://localhost:27017/serverTestDB"
steps:
- name: Start MongoDB service
# Using supercharge to setup/start the MongoDB service
uses: supercharge/[email protected]
with:
mongodb-version: 4.4
- run: npm run ci-test