-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into devcontainer
- Loading branch information
Showing
298 changed files
with
30,492 additions
and
2,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
logs | ||
node_modules | ||
run | ||
typings | ||
.cnpmcore* | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,9 @@ name: Node.js CI | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
branches: [ master ] | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
schedule: | ||
- cron: '0 2 * * *' | ||
branches: [ master ] | ||
|
||
jobs: | ||
test-mysql57-fs-nfs: | ||
|
@@ -28,44 +22,43 @@ jobs: | |
ports: | ||
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | ||
redis: | ||
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers#example-mapping-redis-ports | ||
image: redis | ||
ports: | ||
# Opens tcp port 6379 on the host and service container | ||
- 6379:6379 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [16, 18, 19] | ||
node-version: [16, 18, 20] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout Git Source | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
# https://github.com/marketplace/actions/redis-server-in-github-actions#usage | ||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: 6 | ||
|
||
- name: Install Dependencies | ||
run: npm i | ||
run: npm i -g npminstall && npminstall | ||
|
||
- name: Continuous Integration | ||
run: npm run ci | ||
|
||
- name: Code Coverage | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
test-mysql57-oss-nfs: | ||
runs-on: ${{ matrix.os }} | ||
if: | ||
if: | | ||
contains(' | ||
refs/heads/main | ||
refs/heads/master | ||
refs/heads/dev | ||
', github.ref) | ||
|
@@ -80,27 +73,28 @@ jobs: | |
- 3306:3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | ||
|
||
redis: | ||
# https://docs.github.com/en/actions/using-containerized-services/about-service-containers#example-mapping-redis-ports | ||
image: redis | ||
ports: | ||
# Opens tcp port 6379 on the host and service container | ||
- 6379:6379 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [16, 18] | ||
node-version: [16, 18, 20] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout Git Source | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
# https://github.com/marketplace/actions/redis-server-in-github-actions#usage | ||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: 6 | ||
- name: Install Dependencies | ||
run: npm i | ||
|
||
|
@@ -114,6 +108,6 @@ jobs: | |
CNPMCORE_NFS_OSS_SECRET: ${{ secrets.CNPMCORE_NFS_OSS_SECRET }} | ||
|
||
- name: Code Coverage | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
release: | ||
name: Node.js | ||
uses: cnpm/github-actions/.github/workflows/node-release.yml@master | ||
secrets: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
with: | ||
checkTest: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Egg Debug", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": [ | ||
"run", | ||
"dev", | ||
"--", | ||
"--inspect-brk" | ||
], | ||
"console": "integratedTerminal", | ||
"restart": true, | ||
"protocol": "auto", | ||
"port": 9229, | ||
"autoAttachChildProcesses": true | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Egg Test", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": [ | ||
"run", | ||
"test-local", | ||
"--", | ||
"--inspect-brk" | ||
], | ||
"protocol": "auto", | ||
"port": 9229, | ||
"autoAttachChildProcesses": true | ||
} | ||
] | ||
} |
Oops, something went wrong.