8000 Merge branch 'master' into feature/nymkappa/index-difficulty-adjustments · mempool/mempool@7424c65 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 7424c65

Browse files
authored
Merge branch 'master' into feature/nymkappa/index-difficulty-adjustments
2 parents acfdc81 + c17cf30 commit 7424c65

23 files changed

+4614
-192
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,88 @@
11
name: CI Pipeline for the Backend and Frontend
2+
23
on:
34
push:
45
env:
56
NODE_VERSION: 16.15.0
7+
68
jobs:
7-
build_backend:
8-
name: Build backend
9-
runs-on: ubuntu-latest
9+
backend:
10+
strategy:
11+
matrix:
12+
flavor: ['dev', 'prod']
13+
runs-on: 'ubuntu-latest'
14+
15+
name: Backend (${{ matrix.flavor }})
1016
steps:
1117
- name: Checkout
1218
uses: actions/checkout@v3
19+
with:
20+
path: ${{ matrix.flavor }}
21+
1322
- name: Setup Node
1423
uses: actions/setup-node@v3
1524
with:
1625
node-version: ${{ env.NODE_VERSION }}
1726
registry-url: 'https://registry.npmjs.org'
18-
- name: Install
27+
28+
- name: Install
29+
if: ${{ matrix.flavor == 'dev'}}
30+
run: npm install
31+
working-directory: ${{ matrix.flavor }}/backend
32+
33+
- name: Install (Prod dependencies only)
34+
if: ${{ matrix.flavor == 'prod'}}
1935
run: npm install --prod
20-
working-directory: backend
21-
# - name: Lint
22-
# run: npm run lint
36+
working-directory: ${{ matrix.flavor }}/backend
37+
38+
- name: Lint
39+
if: ${{ matrix.flavor == 'dev'}}
40+
run: npm run lint
41< 8000 code class="diff-text syntax-highlighted-line addition">+
working-directory: ${{ matrix.flavor }}/backend
42+
2343
# - name: Test
2444
# run: npm run test
45+
2546
- name: Build
2647
run: npm run build
27-
working-directory: backend
28-
build_frontend:
29-
name: Build frontend
30-
runs-on: ubuntu-latest
48+
working-directory: ${{ matrix.flavor }}/backend
49+
50+
frontend:
51+
strategy:
52+
matrix:
53+
flavor: ['dev', 'prod']
54+
runs-on: 'ubuntu-latest'
55+
56+
name: Frontend (${{ matrix.flavor }})
3157
steps:
3258
- name: Checkout
3359
uses: actions/checkout@v3
60+
with:
61+
path: ${{ matrix.flavor }}
62+
3463
- name: Setup Node
3564
uses: actions/setup-node@v3
3665
with:
3766
node-version: ${{ env.NODE_VERSION }}
3867
registry-url: 'https://registry.npmjs.org'
39-
- name: Install
40-
run: npm install --prod
41-
working-directory: frontend
42-
# - name: Lint
43-
# run: npm run lint
68+
69+
- name: Install (Prod dependencies only)
70+
run: npm install
71+
if: ${{ matrix.flavor == 'prod'}}
72+
working-directory: ${{ matrix.flavor }}/frontend
73+
74+
- name: Install
75+
if: ${{ matrix.flavor == 'dev'}}
76+
run: npm install
77+
working-directory: ${{ matrix.flavor }}/frontend
78+
79+
- name: Lint
80+
run: npm run lint
81+
working-directory: ${{ matrix.flavor }}/frontend
82+
4483
# - name: Test
4584
# run: npm run test
85+
4686
- name: Build
4787
run: npm run build
48-
working-directory: frontend
88+
working-directory: ${{ matrix.flavor }}/frontend

backend/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

backend/.eslintrc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
10+
"plugin:@typescript-eslint/recommended"
11+
],
12+
"rules": {
13+
"@typescript-eslint/ban-ts-comment": 1,
14+
"@typescript-eslint/ban-types": 1,
15+
"@typescript-eslint/no-empty-function": 1,
16+
"@typescript-eslint/no-explicit-any": 1,
17+
"@typescript-eslint/no-inferrable-types": 1,
18+
"@typescript-eslint/no-namespace": 1,
19+
"@typescript-eslint/no-this-alias": 1,
20+
"@typescript-eslint/no-var-requires": 1,
21+
"no-console": 1,
22+
"no-constant-condition": 1,
23+
"no-dupe-else-if": 1,
24+
"no-empty": 1,
25+
"no-prototype-builtins": 1,
26+
"no-self-assign": 1,
27+
"no-useless-catch": 1,
28+
"no-var": 1,
29+
"prefer-const": 1,
30+
"prefer-rest-params": 1
31+
}
32+
}

0 commit comments

Comments
 (0)
0