Skip to content

Changed test to run on localhost #472

Changed test to run on localhost

Changed test to run on localhost #472

Workflow file for this run

name: Jest Tests
on:
push:
branches:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: '20.x'
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '7.0.2'
mongodb-username: 'admin'
mongodb-password: 'admin'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
env:
MONGODB_URI: mongodb://admin:admin@localhost:27017
JWT_SECRET: secret
AZURE_STORAGE_CONNECTION_STRING: 'DefaultEndpointsProtocol=https;AccountName=account;AccountKey=key;EndpointSuffix=core.windows.net'