Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added first websocket implementation, actions and improved tests #2

Merged
merged 15 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- main
- glydric
pull_request:
branches:
- main

jobs:
jest-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install dependencies
working-directory: "Backend"
run: npm ci
- name: Run tests
working-directory: "Backend"
run: npm test
env:
MONGO_PROTOCOL: ${{ secrets.MONGO_PROTOCOL }}
MONGO_HOST: ${{ secrets.MONGO_HOST }}
MONGO_INITDB_ROOT_USERNAME: ${{ secrets.MONGO_INITDB_ROOT_USERNAME }}
MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_INITDB_ROOT_PASSWORD }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
CSD_USER: ${{ secrets.CSD_USER }}
CSD_PASSWORD: ${{ secrets.CSD_PASSWORD }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
22 changes: 0 additions & 22 deletions Backend/.eslintrc.js

This file was deleted.

28 changes: 28 additions & 0 deletions Backend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"root": true,
"env": {
"node": true,
"jest": true
},
"ignorePatterns": [
".eslintrc.js"
],
"rules": {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
4 changes: 4 additions & 0 deletions Backend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
18 changes: 18 additions & 0 deletions Backend/jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"globalSetup": "./envCheck.ts",
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
Loading
Loading