Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
enapupe committed Nov 12, 2023
1 parent ff9bd4e commit 50c178c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*",
Expand Down
2 changes: 1 addition & 1 deletion src/db/export/json/async-file.processor.ts
Original file line number Diff line number Diff line change
@@ -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<void>
export type PathResolver<T> = (data: T) => string
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"include": [
"src/**/*.ts",
]
}
}
2 changes: 1 addition & 1 deletion tsconfig.release.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"**/__mocks__/*",
"**/__tests__/*"
]
}
}

0 comments on commit 50c178c

Please sign in to comment.