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 58e572a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,29 @@ 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'
cache: 'yarn'

- name: 'Checkout Project'
uses: 'actions/checkout@v3'
with:
fetch-depth: 1
- name: Install dependencies
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 +48,8 @@ jobs:
run: |
docker container restart mongodb
- name: Build and run tests
run: yarn test
env:
NODE_OPTIONS: --experimental-vm-modules
- name: Run tests
run: yarn test:ci

- name: Build files
run: yarn build-release
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"scripts": {
"lint": "yarn ts-standard",
"fix": "yarn ts-standard --fix",
"test": "yarn build && cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest --runInBand",
"test": "jest",
"test:ci": "jest --runInBand --ci",
"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 58e572a

Please sign in to comment.