Add GitHub Actions for CI/CD with linting and testing #1
Annotations
2 errors and 10 warnings
lint:
src/common/parsers.ts#L129
This assertion is unnecessary since it does not change the type of the expression
|
lint
Process completed with exit code 1.
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint:
src/telegram-bot-scene/scenes/create-account.scene-service.ts#L142
Replace `·await·this.currencyService.findOneOrCreate(⏎············currencyCode,⏎········` with `⏎············await·this.currencyService.findOneOrCreate(currencyCode`
|
lint:
src/telegram-bot/helpers/middlewares.ts#L91
Unnecessary conditional, value is always truthy
|
lint:
src/telegram-bot/middleware-builders/base-scene.middleware-builder.ts#L22
Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed
|
lint:
src/telegram-bot/middleware-builders/base-scene.middleware-builder.ts#L114
Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined
|
lint:
src/telegram-bot/middleware-builders/enter-scene.middleware-builder.spec.ts#L274
Unsafe assignment of an `any` value
|
lint:
src/telegram-bot/middleware-builders/enter-scene.middleware-builder.spec.ts#L286
Unsafe assignment of an `any` value
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|