Skip to content

Commit

Permalink
apply main updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Khaled308 committed Oct 7, 2023
2 parents 8fd915a + 6a5f091 commit 1a8b01f
Show file tree
Hide file tree
Showing 102 changed files with 16,066 additions and 4,907 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/client-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Frontend CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
lint-and-test-frontend:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies (Frontend)
run: npm ci
working-directory: client

- name: Run ESLint (Frontend)
run: npm run lint
working-directory: client

31 changes: 31 additions & 0 deletions .github/workflows/clinic-microservice-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Clinic CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
lint-and-test-clinic:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies (Clinic Microservice)
run: npm ci
working-directory: clinic

- name: Run ESLint (Clinic Microservice)
run: npm run lint
working-directory: clinic
31 changes: 31 additions & 0 deletions .github/workflows/patient-microservice-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Patient CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
lint-and-test-patient:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies (Patient Microservice)
run: npm ci
working-directory: patient

- name: Run ESLint (Patient Microservice)
run: npm run lint
working-directory: patient
46 changes: 46 additions & 0 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"react-hooks"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"react/prop-types": "off",
"react-hooks/exhaustive-deps": "error",
"object-curly-spacing": ["error", "always"],
"no-unused-vars": "error",
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-duplicate-imports": "error",
"prefer-const": "error"
}
}
Loading

0 comments on commit 1a8b01f

Please sign in to comment.