From ff92c6b29f9a39fc3c75caac741ede32c1d5298a Mon Sep 17 00:00:00 2001 From: Celeste Date: Fri, 13 Dec 2024 15:20:11 -0300 Subject: [PATCH] chore(test): actualiza ubuntu version para test unitarios (#2009) --- .github/workflows/build.yml | 10 +++++----- docker-compose.yml | 2 +- package.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af1b18c1fa..ebf3ede5c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,15 +2,15 @@ name: BUILD AND TEST on: [push] jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: '14.x' + node-version: '16.x' - run: npm ci - run: cp config.private.ts.example config.private.ts - run: npm run lint - run: npm run tsc - # - run: npm run test + - run: npm run test diff --git a/docker-compose.yml b/docker-compose.yml index d66ad150cf..0395e6d5b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: mongo: - image: mongo:4.0 + image: mongo:5.0 volumes: - vmongo:/data/db ports: diff --git a/package.json b/package.json index 05f6d8073c..4a9a6d6f88 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "jobs": "tsc && node jobs/scheduler.js", "lint": "eslint -c .eslintrc.js --ext .ts .", "lint:fix": "eslint -c .eslintrc.js --ext .ts . --fix", - "test": "jest", + "test": "MONGOMS_DEBUG=1 jest", "testing": "NODE_ENV=test npm start", "docker:up": "docker-compose -p andes_dev up -d ", "docker:down": "docker-compose -p andes_dev down", @@ -186,4 +186,4 @@ "ts-jest": "^24.1.0", "tslint-eslint-rules": "^4.1.1" } -} +} \ No newline at end of file