Skip to content

Commit 72c1bc5

Browse files
committed
Merge remote-tracking branch 'bp/main'
2 parents 51343ce + 05f7de2 commit 72c1bc5

38 files changed

Lines changed: 346 additions & 561 deletions

.env

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4317"
3+
4+
# POSTGRES_HOST="127.0.0.1"
5+
# POSTGRES_PORT=5432
6+
# POSTGRES_DB=db_ci_test
7+
# POSTGRES_USER=postgres
8+
# POSTGRES_PASSWORD=postgres
9+
10+
# PGMQ_HOST="127.0.0.1"
11+
# PGMQ_PORT=5432
12+
# PGMQ_DB=postgres
13+
# PGMQ_USER=postgres
14+
# PGMQ_PASSWORD=postgres
15+
16+
# PARADEDB_HOST="127.0.0.1"
17+
# PARADEDB_PORT=5432
18+
# PARADEDB_DB=db_ci_test
19+
# PARADEDB_USER=postgres
20+
# PARADEDB_PASSWORD=postgres
21+

.githooks/init-repo.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ if [ -z "$CI" ]; then
2525
git config --local remote.origin.prune true
2626
git config --local remote.origin.tagopt --tags
2727
git config --local remote.pushdefault origin
28+
git config --local rerere.enabled true
2829
fi;
2930

30-
echo It may going for a long time. Plese wait...
31+
echo It may going for a long time. Please wait...
3132
.githooks/gen-file-from-example.js
3233

3334
lerna list

.githooks/init.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ export const globalConfigFileArr: string[] = [
1717
'.vscode/launch.json.example',
1818
'.vscode/settings.json.example',
1919
'.vscode/ci.code-snippets.example',
20+
'.vscode/common.code-snippets.example',
21+
'.vscode/md.code-snippets.example',
2022
'.vscode/midway.code-snippets.example',
2123
'.vscode/promise.code-snippets.example',
2224
'./tsconfig.base.json',
2325
'./tsconfig.eslint.json',
2426
// './rollup.config.js',
2527
'./bin-hashbang.js',
28+
'./.env',
2629
]
2730

.githooks/set-scripts-executable-now.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set +e
44
dirs=".scripts .github src bin"
55

66
for dir in $dirs; do
7-
[[ -f "$dir" ]] && find $dir -type f \( -iname "*.sh" -o -iname "*.mjs" -o -iname "*.mts" \) -print0 | xargs -0II chmod a+x I
7+
[[ -d "$dir" ]] && find $dir -type f \( -iname "*.sh" -o -iname "*.mjs" -o -iname "*.mts" \) -print0 | xargs -0II chmod a+x I
88
done
99

1010
set -e

.githooks/set-scripts-executable.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set +e
44
dirs=".scripts .github"
55

66
for dir in $dirs; do
7-
[[ -f "$dir" ]] && find $dir -type f \( -iname "*.sh" -o -iname "*.mjs" -o -iname "*.mts" \) -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
7+
[[ -d "$dir" ]] && find $dir -type f \( -iname "*.sh" -o -iname "*.mjs" -o -iname "*.mts" \) -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
88
done
99

1010
find .githooks -type f -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I

.github/workflows/nodejs-win.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
# env:
8585
# CI: true
8686

87-
- name: Testing
87+
- name: Coverage
8888
shell: bash
8989
run: |
9090
export cwd=`pwd`
@@ -94,17 +94,6 @@ jobs:
9494
npm run ci
9595
env:
9696
CI: true
97-
# use `localhost` if running the job on the VM
98-
# use `postgres` if running the job on a container
99-
POSTGRES_HOST: postgres
100-
POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }}
101-
POSTGRES_DB: db_ci_test
102-
POSTGRES_USER: postgres
103-
POSTGRES_PASSWORD: postgres
104-
PGPASSWORD: postgres
105-
# redis
106-
REDIS_HOST: redis
107-
REDIS_PORT: 6379
10897

10998
- name: Upload coverage to Codecov
11099
uses: codecov/codecov-action@v4

.github/workflows/nodejs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
4242
- name: Prepare
4343
run: |
44-
pwd
4544
uname -a
4645
export DEBIAN_FRONTEND=noninteractive
4746
apt-get update -qq --yes > /dev/null
@@ -57,22 +56,21 @@ jobs:
5756
locale-gen
5857
locale -a
5958
netstat -tunpl
59+
dig jaeger
6060
export cwd=`pwd`
6161
git config --global --add safe.directory $cwd
6262
6363
- name: Install Dependencies
6464
timeout-minutes: 15
6565
run: |
66-
# DO NOT execute: npm config set unsafe-perm=true
6766
export cwd=`pwd`
6867
npm i --no-audit -g c8 lerna madge rollup tsx zx
69-
npm i
68+
npm i --no-audit
7069
env:
7170
CI: true
7271

7372
- name: Build
7473
run: |
75-
pwd
7674
whoami
7775
export cwd=`pwd`
7876
. .scripts/ci/ci-env.sh
@@ -103,4 +101,6 @@ jobs:
103101
# POSTGRES_PASSWORD: postgres
104102
# # needed because the postgres container does not provide a healthcheck
105103
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
106-
104+
# otel
105+
OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
106+
# aliyun

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env
12
.nx
23
.ssh/
34
dbconfig.json

.mocharc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node-option:
66
- no-warnings
77
- "loader=ts-node/esm"
88
- "enable-source-maps"
9+
- "env-file=.env"
910
require:
1011
- tsconfig-paths/register.js
1112
- test/setup.ts

.nycrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
"json",
2121
"text-summary"
2222
],
23+
"skip-full": true,
2324
"all": true
2425
}

0 commit comments

Comments
 (0)