feat: app state in typescript #285
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
services: | |
mongo: | |
image: mongo:5 | |
env: | |
MONGO_INITDB_ROOT_USERNAME: chat | |
MONGO_INITDB_ROOT_PASSWORD: chat | |
options: >- | |
--health-cmd mongo | |
--health-interval 20s | |
--health-timeout 10s | |
--health-retries 5 | |
ports: | |
- 27017:27017 | |
env: | |
NODE_ENV: 'test' | |
DATABASE_URL: 'mongodb://chat:chat@localhost:27017/tests?authSource=admin' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
- run: npm i -g npm | |
- run: npm i | |
- run: npm run lint:ci | |
- run: npm exec migrate-mongo up | |
- run: npm run test:ci |