From 50c178c426873d16c871bef25bc372d68db71a60 Mon Sep 17 00:00:00 2001 From: Iacami Gevaerd Date: Sun, 12 Nov 2023 20:36:31 -0300 Subject: [PATCH] wip --- .github/workflows/nodejs.yml | 21 ++++++++++++--------- package.json | 2 +- src/db/export/json/async-file.processor.ts | 2 +- tsconfig.json | 2 +- tsconfig.release.json | 2 +- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 88cde9a8..05bbd088 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,25 +4,28 @@ on: push: branches: - develop + - test pull_request: jobs: build: runs-on: 'ubuntu-latest' + steps: + - name: 'Checkout Project' + uses: 'actions/checkout@v4' + - name: Setup Node.js environment uses: actions/setup-node@v3 with: node-version: '16.15' - - name: 'Checkout Project' - uses: 'actions/checkout@v3' - with: - fetch-depth: 1 + - name: Lint code + run: yarn install --immutable - - name: Install Dependencies and lint code - run: yarn install && yarn lint + - name: Lint code + run: yarn lint - name: Start MongoDB uses: supercharge/mongodb-github-action@1.8.0 @@ -44,8 +47,8 @@ jobs: run: | docker container restart mongodb - - name: Build and run tests + - name: Run tests run: yarn test - env: - NODE_OPTIONS: --experimental-vm-modules + - name: Build files + run: yarn build-release diff --git a/package.json b/package.json index fbbfcbde..4f5e58d4 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "scripts": { "lint": "yarn ts-standard", "fix": "yarn ts-standard --fix", - "test": "yarn build && cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --runInBand", + "test": "jest", "build": "tsc -p tsconfig.json", "build-release": "tsc -p tsconfig.release.json", "clean": "tsc -b --clean && rm -rf build/*", diff --git a/src/db/export/json/async-file.processor.ts b/src/db/export/json/async-file.processor.ts index b7566528..136f6cf6 100644 --- a/src/db/export/json/async-file.processor.ts +++ b/src/db/export/json/async-file.processor.ts @@ -1,7 +1,7 @@ import { promises } from 'fs' import { Processor } from '../common/processor' import path, { dirname } from 'path' -import { logger } from '../../../logge' +import { logger } from '../../../logger' export type Writer = (data: string, path: string) => Promise export type PathResolver = (data: T) => string diff --git a/tsconfig.json b/tsconfig.json index 871ed609..1d67eeea 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,4 +21,4 @@ "include": [ "src/**/*.ts", ] -} \ No newline at end of file +} diff --git a/tsconfig.release.json b/tsconfig.release.json index 96e646f3..2d41042a 100644 --- a/tsconfig.release.json +++ b/tsconfig.release.json @@ -5,4 +5,4 @@ "**/__mocks__/*", "**/__tests__/*" ] -} \ No newline at end of file +}