Skip to content

Commit 36fc2f7

Browse files
authored
Merge branch 'master' into devcontainer
2 parents d2bb67e + 072e146 commit 36fc2f7

File tree

298 files changed

+30492
-2934
lines changed

Some content is hidden

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

298 files changed

+30492
-2934
lines changed

.dockerignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
logs
2+
node_modules
3+
run
4+
typings
5+
.cnpmcore*
6+
coverage

.github/workflows/codeql-analysis.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ main ]
16+
branches: [ master ]
1717
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ main ]
20-
schedule:
21-
- cron: '41 13 * * 3'
18+
branches: [ master ]
2219

2320
jobs:
2421
analyze:

.github/workflows/nodejs.yml

+25-31
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches:
9-
- main
10-
- master
8+
branches: [ master ]
119
pull_request:
12-
branches:
13-
- main
14-
- master
15-
schedule:
16-
- cron: '0 2 * * *'
10+
branches: [ master ]
1711

1812
jobs:
1913
test-mysql57-fs-nfs:
@@ -28,44 +22,43 @@ jobs:
2822
ports:
2923
- 3306:3306
3024
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
25+
redis:
26+
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers#example-mapping-redis-ports
27+
image: redis
28+
ports:
29+
# Opens tcp port 6379 on the host and service container
30+
- 6379:6379
3131

3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
node-version: [16, 18, 19]
35+
node-version: [16, 18, 20]
3636
os: [ubuntu-latest]
3737

3838
steps:
3939
- name: Checkout Git Source
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
4141

4242
- name: Use Node.js ${{ matrix.node-version }}
43-
uses: actions/setup-node@v1
43+
uses: actions/setup-node@v3
4444
with:
4545
node-version: ${{ matrix.node-version }}
4646

47-
# https://github.com/marketplace/actions/redis-server-in-github-actions#usage
48-
- name: Start Redis
49-
uses: supercharge/[email protected]
50-
with:
51-
redis-version: 6
52-
5347
- name: Install Dependencies
54-
run: npm i
48+
run: npm i -g npminstall && npminstall
5549

5650
- name: Continuous Integration
5751
run: npm run ci
5852

5953
- name: Code Coverage
60-
uses: codecov/codecov-action@v1
54+
uses: codecov/codecov-action@v3
6155
with:
6256
token: ${{ secrets.CODECOV_TOKEN }}
6357

6458
test-mysql57-oss-nfs:
6559
runs-on: ${{ matrix.os }}
66-
if:
60+
if: |
6761
contains('
68-
refs/heads/main
6962
refs/heads/master
7063
refs/heads/dev
7164
', github.ref)
@@ -80,27 +73,28 @@ jobs:
8073
- 3306:3306
8174
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
8275

76+
redis:
77+
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers#example-mapping-redis-ports
78+
image: redis
79+
ports:
80+
# Opens tcp port 6379 on the host and service container
81+
- 6379:6379
82+
8383
strategy:
8484
fail-fast: false
8585
matrix:
86-
node-version: [16, 18]
86+
node-version: [16, 18, 20]
8787
os: [ubuntu-latest]
8888

8989
steps:
9090
- name: Checkout Git Source
91-
uses: actions/checkout@v2
91+
uses: actions/checkout@v3
9292

9393
- name: Use Node.js ${{ matrix.node-version }}
94-
uses: actions/setup-node@v1
94+
uses: actions/setup-node@v3
9595
with:
9696
node-version: ${{ matrix.node-version }}
9797

98-
# https://github.com/marketplace/actions/redis-server-in-github-actions#usage
99-
- name: Start Redis
100-
uses: supercharge/[email protected]
101-
with:
102-
redis-version: 6
103-
10498
- name: Install Dependencies
10599
run: npm i
106100

@@ -114,6 +108,6 @@ jobs:
114108
CNPMCORE_NFS_OSS_SECRET: ${{ secrets.CNPMCORE_NFS_OSS_SECRET }}
115109

116110
- name: Code Coverage
117-
uses: codecov/codecov-action@v1
111+
uses: codecov/codecov-action@v3
118112
with:
119113
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/release.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [ master ]
5+
6+
jobs:
7+
release:
8+
name: Node.js
9+
uses: cnpm/github-actions/.github/workflows/node-release.yml@master
10+
secrets:
11+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
13+
with:
14+
checkTest: false

.github/workflows/sql-review.yml

-18
This file was deleted.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config/config.prod.ts
1414
config/**/*.js
1515
app/**/*.js
1616
test/**/*.js
17+
app.js
1718

1819
.cnpmcore
1920
.cnpmcore_unittest
@@ -117,4 +118,6 @@ dist
117118
.tern-port
118119

119120
.idea
121+
.DS_Store
120122
run
123+
!test/ctx_register.js

.vscode/launch.json

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Egg Debug",
11+
"runtimeExecutable": "npm",
12+
"runtimeArgs": [
13+
"run",
14+
"dev",
15+
"--",
16+
"--inspect-brk"
17+
],
18+
"console": "integratedTerminal",
19+
"restart": true,
20+
"protocol": "auto",
21+
"port": 9229,
22+
"autoAttachChildProcesses": true
23+
},
24+
{
25+
"type": "node",
26+
"request": "launch",
27+
"name": "Egg Test",
28+
"runtimeExecutable": "npm",
29+
"runtimeArgs": [
30+
"run",
31+
"test-local",
32+
"--",
33+
"--inspect-brk"
34+
],
35+
"protocol": "auto",
36+
"port": 9229,
37+
"autoAttachChildProcesses": true
38+
}
39+
]
40+
}

0 commit comments

Comments
 (0)