Skip to content

fix: fixes app exiting with error during tests #6

fix: fixes app exiting with error during tests

fix: fixes app exiting with error during tests #6

Workflow file for this run

name: Complete Workflow
on:
push:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
mongodb-version: [7.0]
steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm ci
- name: Run all tests
run: npm test
- name: Deployment
uses: JorgeLNJunior/[email protected]
with:
service_id: ${{ secrets.RENDER_SERVICE_ID }}
api_key: ${{ secrets.RENDER_API_KEY }}
clear_cache: true
wait_deploy: true
github_token: ${{ secrets.GITHUB_TOKEN }}