Skip to content

Commit db212fe

Browse files
authored
Merge branch 'develop' into patch-1
2 parents 566ca2a + 6b67009 commit db212fe

File tree

364 files changed

+37401
-17674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+37401
-17674
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["@babel/preset-env", "@babel/preset-react","@babel/preset-typescript"],
3-
"plugins": ["@babel/plugin-transform-runtime"]
3+
"plugins": ["@babel/plugin-transform-runtime", "istanbul"]
44
}

.eslintrc.json

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint", "react"],
4+
"extends": ["eslint:recommended", "prettier", "plugin:@typescript-eslint/recommended"], // this is optional
5+
"env": {
6+
"browser": true,
7+
"node": true
8+
},
9+
"settings": {
10+
"react": {
11+
"version": "detect"
12+
}
13+
},
14+
"ignorePatterns": ["node_modules/**", "packages/**/dist/**", "packages/**/coverage/**"],
15+
"rules": {
16+
"@typescript-eslint/no-explicit-any": "off", // Off for v1
17+
"@typescript-eslint/ban-ts-comment": "off", // Off for v1
18+
"@typescript-eslint/no-empty-function": "off", // Off for v1
19+
"@typescript-eslint/no-unused-vars": [
20+
"error",
21+
{ "vars": "all", "varsIgnorePattern": "^_*", "args": "after-used", "argsIgnorePattern": "^_" }
22+
],
23+
"array-callback-return": "off", // Off for v1
24+
"arrow-body-style": "off",
25+
"block-scoped-var": "error",
26+
"camelcase": "off", // Off for v1
27+
"consistent-return": "off", // Off for v1
28+
"consistent-this": ["error", "self"],
29+
"constructor-super": "error",
30+
"curly": ["error", "all"],
31+
"default-case": "error",
32+
"default-param-last": "off", // Off for v1
33+
"dot-notation": "error",
34+
"eqeqeq": "off", // Off for v1
35+
"func-names": "error",
36+
"func-style": [
37+
"error",
38+
"declaration",
39+
{
40+
"allowArrowFunctions": true
41+
}
42+
],
43+
"grouped-accessor-pairs": "error",
44+
"line-comment-position": "off", // Off for v1
45+
"lines-between-class-members": "error",
46+
"max-depth": "error",
47+
"max-len": [
48+
"off", // Off for v1
49+
{
50+
"code": 120,
51+
"comments": 120,
52+
"ignoreUrls": true,
53+
"ignoreTemplateLiterals": true
54+
}
55+
],
56+
"max-lines-per-function": ["off"],
57+
"max-nested-callbacks": ["error", 5],
58+
"max-statements": ["off"],
59+
"max-statements-per-line": "error",
60+
"no-alert": "off", // Off for v1
61+
"no-array-constructor": "error",
62+
"no-await-in-loop": "off", // Off for v1
63+
"no-buffer-constructor": "error",
64+
"no-caller": "error",
65+
"no-confusing-arrow": "error",
66+
"no-console": "warn",
67+
"no-constructor-return": "error",
68+
"no-constant-condition": "error",
69+
"no-debugger": "warn",
70+
"no-dupe-else-if": "error",
71+
"no-else-return": "error",
72+
"no-empty-function": [
73+
"off", // Off for v1
74+
{
75+
"allow": ["constructors"]
76+
}
77+
],
78+
"no-eq-null": "off", // Off for V1
79+
"no-eval": "error",
80+
"no-extend-native": "error",
81+
"no-extra-bind": "error",
82+
"no-extra-label": "error",
83+
"no-implicit-coercion": "error",
84+
"no-implicit-globals": "error",
85+
"no-implied-eval": "error",
86+
"no-import-assign": "error",
87+
"no-invalid-this": "off",
88+
"no-iterator": "error",
89+
"no-labels": "error",
90+
"no-lone-blocks": "error",
91+
"no-lonely-if": "error",
92+
"no-loop-func": "error",
93+
"no-magic-numbers": "off",
94+
"no-multi-assign": "error",
95+
"no-multi-str": "error",
96+
"no-nested-ternary": "off", // Off for v1
97+
"no-new": "error",
98+
"no-new-func": "error",
99+
"no-new-object": "error",
100+
"no-new-wrappers": "error",
101+
"no-octal-escape": "error",
102+
"no-param-reassign": "off", // Off for v1
103+
"no-path-concat": "error",
104+
"no-plusplus": [
105+
"error",
106+
{
107+
"allowForLoopAfterthoughts": true
108+
}
109+
],
110+
"no-proto": "off", // Off for v1
111+
"no-restricted-globals": "error",
112+
"no-return-assign": "error",
113+
"no-return-await": "error",
114+
"no-self-compare": "error",
115+
"no-sequences": "error",
116+
"no-setter-return": "error",
117+
"no-sync": "error",
118+
"no-tabs": "error",
119+
"no-template-curly-in-string": "error",
120+
"no-underscore-dangle": "off", // Off for v1
121+
"no-unmodified-loop-condition": "error",
122+
"no-unneeded-ternary": "error",
123+
"no-unreachable": "error",
124+
"no-unused-expressions": "off", // Off for v1
125+
"no-useless-call": "error",
126+
"no-useless-computed-key": "error",
127+
"no-useless-concat": "off", // Off for v1
128+
"no-useless-rename": "error",
129+
"no-useless-return": "error",
130+
"no-var": "error",
131+
"no-void": ["error", { "allowAsStatement": true }],
132+
"one-var": ["error", "never"],
133+
"operator-assignment": "error",
134+
"padding-line-between-statements": "error",
135+
"prefer-arrow-callback": "warn",
136+
"prefer-const": "off", // Off for v1
137+
"prefer-destructuring": [
138+
// Off for v1
139+
"warn",
140+
{
141+
"VariableDeclarator": {
142+
"array": true,
143+
"object": true
144+
},
145+
"AssignmentExpression": {
146+
"array": false,
147+
"object": false
148+
}
149+
}
150+
],
151+
"prefer-numeric-literals": "warn",
152+
"prefer-promise-reject-errors": "warn",
153+
"prefer-rest-params": "warn",
154+
"prefer-spread": "warn",
155+
"prefer-template": "warn",
156+
"radix": "off", // Off for v1
157+
"require-atomic-updates": "error",
158+
"require-await": "warn", // Warn for v1
159+
"sort-keys": "off",
160+
"spaced-comment": [
161+
"warn",
162+
"always",
163+
{
164+
"markers": ["/"]
165+
}
166+
],
167+
"symbol-description": "error",
168+
"yoda": "error"
169+
}
170+
}
Lines changed: 55 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,58 @@
11
name: Test/Deploy Develop
2-
2+
33
on:
4-
push:
5-
branches: [ develop ]
6-
4+
push:
5+
branches: [develop]
6+
77
jobs:
8-
build-test:
9-
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
node-version: [18.x]
13-
steps:
14-
- uses: actions/checkout@v2
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: ${{ matrix.node-version }}
19-
- name: Creating Neo4j Container
20-
run: |
21-
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
22-
./scripts/docker-neo4j-initializer/docker-neo4j.sh
23-
sleep 30s
24-
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
25-
./scripts/docker-neo4j-initializer/start-movies-db.sh
26-
- run: rm -rf docs
27-
- run: yarn install
28-
- name: Cypress run
29-
uses: cypress-io/github-action@v2
30-
with:
31-
build: yarn run build
32-
start: yarn run dev
33-
wait-on: 'http://localhost:3000'
34-
build-s3:
35-
needs: build-test
36-
runs-on: ubuntu-latest
37-
strategy:
38-
matrix:
39-
node-version: [18.x]
40-
steps:
41-
- uses: actions/checkout@v2
42-
- name: Use Node.js ${{ matrix.node-version }}
43-
uses: actions/setup-node@v1
44-
with:
45-
node-version: ${{ matrix.node-version }}
46-
- run: yarn install
47-
- run: yarn run build
48-
- name: Set AWS credentials
49-
uses: aws-actions/configure-aws-credentials@v1
50-
with:
51-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
52-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
53-
aws-region: us-west-1
54-
- run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
55-
- run: aws s3 rm s3://neodash-test.graphapp.io/ --recursive && aws s3 sync dist s3://neodash-test.graphapp.io/ --acl public-read
8+
build-test:
9+
if: github.event.pull_request.draft == false
10+
runs-on: neodash-runners
11+
strategy:
12+
matrix:
13+
node-version: [18.x]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: Creating Neo4j Container
21+
run: |
22+
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
23+
./scripts/docker-neo4j-initializer/docker-neo4j.sh
24+
sleep 30s
25+
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
26+
./scripts/docker-neo4j-initializer/start-movies-db.sh
27+
- run: yarn install
28+
- name: Eslint check
29+
run: yarn run lint
30+
- name: Cypress run
31+
uses: cypress-io/github-action@v4
32+
with:
33+
build: yarn run build
34+
start: yarn run dev
35+
wait-on: "http://localhost:3000"
36+
browser: chrome
37+
build-s3:
38+
needs: build-test
39+
runs-on: neodash-runners
40+
strategy:
41+
matrix:
42+
node-version: [18.x]
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Use Node.js ${{ matrix.node-version }}
46+
uses: actions/setup-node@v1
47+
with:
48+
node-version: ${{ matrix.node-version }}
49+
- run: yarn install
50+
- run: yarn run build-minimal
51+
- name: Set AWS credentials
52+
uses: aws-actions/configure-aws-credentials@v1
53+
with:
54+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
55+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
56+
aws-region: us-west-1
57+
- run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
58+
- run: aws s3 rm s3://neodash-test.graphapp.io/ --recursive && aws s3 sync dist s3://neodash-test.graphapp.io/ --acl public-read

.github/workflows/develop-test.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
11
name: Test Develop
2-
2+
33
on:
4-
pull_request:
5-
branches: [ develop ]
6-
7-
4+
pull_request:
5+
branches: [develop]
6+
87
jobs:
9-
build-test:
10-
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
node-version: [18.x]
14-
steps:
15-
- uses: actions/checkout@v2
16-
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
18-
with:
19-
node-version: ${{ matrix.node-version }}
20-
- name: Creating Neo4j Container
21-
run: |
22-
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
23-
./scripts/docker-neo4j-initializer/docker-neo4j.sh
24-
sleep 30s
25-
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
26-
./scripts/docker-neo4j-initializer/start-movies-db.sh
27-
- run: yarn install
28-
- name: Cypress run
29-
uses: cypress-io/github-action@v2
30-
with:
31-
build: yarn run build
32-
start: yarn run dev
33-
wait-on: 'http://localhost:3000'
8+
build-test:
9+
if: github.event.pull_request.draft == false
10+
runs-on: neodash-runners
11+
strategy:
12+
matrix:
13+
node-version: [18.x]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: Creating Neo4j Container
21+
run: |
22+
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
23+
./scripts/docker-neo4j-initializer/docker-neo4j.sh
24+
sleep 30s
25+
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
26+
./scripts/docker-neo4j-initializer/start-movies-db.sh
27+
- run: yarn install
28+
- name: Eslint check
29+
run: yarn run lint
30+
- name: Cypress run
31+
uses: cypress-io/github-action@v4
32+
with:
33+
build: yarn run build
34+
start: yarn run dev
35+
wait-on: 'http://localhost:3000'
36+
browser: chrome
37+
- name: Upload coverage reports to Codecov
38+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)