ci: migrate from nyc to c8 (#11759)

Co-authored-by: Oleg "OSA413" Sokolov <OSA413@users.noreply.github.com>
This commit is contained in:
Piotr Kuczynski 2025-11-20 18:15:53 +01:00 committed by GitHub
parent 02e7b713ed
commit bec548a7d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 129 additions and 1495 deletions

View File

@ -1,8 +1,9 @@
{
"all": true,
"cache": false,
"exclude": ["**/*.d.ts"],
"exclude": ["node_modules", "**/*.d.ts"],
"exclude-after-remap": true,
"extension": [".ts"],
"include": ["build/compiled/src/**", "src/**"],
"reporter": "lcov"
"reporter": ["lcov"]
}

View File

@ -31,7 +31,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/cockroachdb.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -58,7 +58,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/mongodb.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -89,7 +89,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/mssql.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -130,7 +130,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/mysql-mariadb.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -171,7 +171,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/mysql-mariadb-latest.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -192,7 +192,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/better-sqlite3.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -213,7 +213,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/sqlite.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -234,7 +234,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/sqljs.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -274,7 +274,7 @@ jobs:
path: build/
- run: npm ci
- run: cp .github/workflows/test/postgres.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
@ -300,7 +300,7 @@ jobs:
- run: npm ci
- run: cat ormconfig.sample.json | jq 'map(select(.name == "oracle"))' > ormconfig.json
- run: docker compose up oracle --no-recreate --wait
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
@ -327,7 +327,7 @@ jobs:
- run: npm ci
- run: cat ormconfig.sample.json | jq 'map(select(.name == "hanaexpress"))' > ormconfig.json
- run: docker compose up hanaexpress --no-recreate --wait
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2

View File

@ -22,7 +22,7 @@ jobs:
- run: npm ci
- run: cp .github/workflows/test/better-sqlite3.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
@ -45,7 +45,7 @@ jobs:
- run: npm ci
- run: cp .github/workflows/test/sqlite.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
@ -68,7 +68,7 @@ jobs:
- run: npm ci
- run: cp .github/workflows/test/sqljs.ormconfig.json ormconfig.json
- run: npx nyc npm run test:ci
- run: npx c8 npm run test:ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2

5
.gitignore vendored
View File

@ -3,12 +3,11 @@
._*
### Node ###
npm-debug.log*
build/
coverage/
*.lcov
.nyc_output/
node_modules/
npm-debug.log*
*.lcov
### VisualStudioCode ###
.vscode/*

1584
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -129,6 +129,7 @@
"@types/source-map-support": "^0.5.10",
"@types/yargs": "^17.0.33",
"better-sqlite3": "^8.7.0",
"c8": "^10.1.3",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"class-transformer": "^0.5.1",
@ -150,7 +151,6 @@
"mssql": "^11.0.1",
"mysql": "^2.18.1",
"mysql2": "^3.15.0",
"nyc": "^17.1.0",
"oracledb": "^6.9.0",
"pg": "^8.16.3",
"pg-query-stream": "^4.10.3",