mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
chore(CI): fix codecov reporter (#12210)
* chore(CI): update codecov/codecov-action to v3 * chore: use default test reporter * chore: use text-summary * chore: update coverage dir * chore: switch to istanbul * chore: use lcov * chore: fix open:coverage path
This commit is contained in:
parent
694daef6ea
commit
87ed409842
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -51,9 +51,10 @@ jobs:
|
|||||||
run: pnpm run test:coverage
|
run: pnpm run test:coverage
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
directory: ./packages/vant/test/coverage
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"test:update": "vitest run -u",
|
"test:update": "vitest run -u",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"test:coverage": "vitest run --coverage",
|
"test:coverage": "vitest run --coverage",
|
||||||
"open:coverage": "open test/coverage/index.html"
|
"open:coverage": "open test/coverage/lcov-report/index.html"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "https://registry.npmjs.org/"
|
"registry": "https://registry.npmjs.org/"
|
||||||
@ -61,14 +61,14 @@
|
|||||||
"@vant/icons": "workspace:*",
|
"@vant/icons": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
||||||
"@vitest/coverage-v8": "0.34.2",
|
"@vitest/coverage-istanbul": "0.34.1",
|
||||||
"@vue/runtime-core": "^3.3.4",
|
"@vue/runtime-core": "^3.3.4",
|
||||||
"@vue/test-utils": "^2.3.2",
|
"@vue/test-utils": "^2.3.2",
|
||||||
"diffable-html": "^5.0.0",
|
"diffable-html": "^5.0.0",
|
||||||
"jsdom": "^22.1.0",
|
"jsdom": "^22.1.0",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.0.4",
|
||||||
"vite": "^4.4.2",
|
"vite": "^4.4.2",
|
||||||
"vitest": "^0.34.2",
|
"vitest": "0.34.2",
|
||||||
"vitest-canvas-mock": "^0.3.2",
|
"vitest-canvas-mock": "^0.3.2",
|
||||||
"vue": "^3.3.4",
|
"vue": "^3.3.4",
|
||||||
"vue-router": "^4.1.6"
|
"vue-router": "^4.1.6"
|
||||||
|
@ -9,6 +9,7 @@ export default defineConfig({
|
|||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
coverage: {
|
coverage: {
|
||||||
|
provider: 'istanbul',
|
||||||
include: ['src/**/*.[jt]s?(x)'],
|
include: ['src/**/*.[jt]s?(x)'],
|
||||||
exclude: [
|
exclude: [
|
||||||
'src/lazyload/vue-lazyload/**',
|
'src/lazyload/vue-lazyload/**',
|
||||||
@ -16,7 +17,7 @@ export default defineConfig({
|
|||||||
'**/test/**',
|
'**/test/**',
|
||||||
'**/lang/**',
|
'**/lang/**',
|
||||||
],
|
],
|
||||||
reporter: ['html', 'lcov', 'text-summary'],
|
reporter: ['lcov', 'text-summary'],
|
||||||
reportsDirectory: './test/coverage',
|
reportsDirectory: './test/coverage',
|
||||||
},
|
},
|
||||||
environment: 'jsdom',
|
environment: 'jsdom',
|
||||||
|
49
pnpm-lock.yaml
generated
49
pnpm-lock.yaml
generated
@ -88,9 +88,9 @@ importers:
|
|||||||
'@vitejs/plugin-vue-jsx':
|
'@vitejs/plugin-vue-jsx':
|
||||||
specifier: ^3.0.0
|
specifier: ^3.0.0
|
||||||
version: 3.0.1(vite@4.4.9)(vue@3.3.4)
|
version: 3.0.1(vite@4.4.9)(vue@3.3.4)
|
||||||
'@vitest/coverage-v8':
|
'@vitest/coverage-istanbul':
|
||||||
specifier: 0.34.2
|
specifier: 0.34.1
|
||||||
version: 0.34.2(vitest@0.34.2)
|
version: 0.34.1(vitest@0.34.2)
|
||||||
'@vue/runtime-core':
|
'@vue/runtime-core':
|
||||||
specifier: ^3.3.4
|
specifier: ^3.3.4
|
||||||
version: 3.3.4
|
version: 3.3.4
|
||||||
@ -110,7 +110,7 @@ importers:
|
|||||||
specifier: ^4.4.2
|
specifier: ^4.4.2
|
||||||
version: 4.4.9(@types/node@18.17.5)
|
version: 4.4.9(@types/node@18.17.5)
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^0.34.2
|
specifier: 0.34.2
|
||||||
version: 0.34.2(jsdom@22.1.0)
|
version: 0.34.2(jsdom@22.1.0)
|
||||||
vitest-canvas-mock:
|
vitest-canvas-mock:
|
||||||
specifier: ^0.3.2
|
specifier: ^0.3.2
|
||||||
@ -627,10 +627,6 @@ packages:
|
|||||||
'@babel/helper-validator-identifier': 7.22.5
|
'@babel/helper-validator-identifier': 7.22.5
|
||||||
to-fast-properties: 2.0.0
|
to-fast-properties: 2.0.0
|
||||||
|
|
||||||
/@bcoe/v8-coverage@0.2.3:
|
|
||||||
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@esbuild/android-arm64@0.18.20:
|
/@esbuild/android-arm64@0.18.20:
|
||||||
resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}
|
resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}
|
||||||
engines: {node: '>=12'}
|
engines: {node: '>=12'}
|
||||||
@ -972,10 +968,6 @@ packages:
|
|||||||
'@types/node': 18.17.5
|
'@types/node': 18.17.5
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/istanbul-lib-coverage@2.0.4:
|
|
||||||
resolution: {integrity: sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==}
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/@types/json-schema@7.0.12:
|
/@types/json-schema@7.0.12:
|
||||||
resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==}
|
resolution: {integrity: sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==}
|
||||||
dev: false
|
dev: false
|
||||||
@ -1170,22 +1162,17 @@ packages:
|
|||||||
vite: 4.4.9(@types/node@18.17.5)
|
vite: 4.4.9(@types/node@18.17.5)
|
||||||
vue: 3.3.4
|
vue: 3.3.4
|
||||||
|
|
||||||
/@vitest/coverage-v8@0.34.2(vitest@0.34.2):
|
/@vitest/coverage-istanbul@0.34.1(vitest@0.34.2):
|
||||||
resolution: {integrity: sha512-3VuDZPeGGd1zWtc0Tdj9cHSbFc8IQ0ffnWp9MlhItOkziN6HEf219meZ9cZheg/hJXrXb+Fi2bMu7GeCAfL4yA==}
|
resolution: {integrity: sha512-5GprlyY2t1g6+RrssWcN/w5RnZV3qIOM0eoaSDJw3jXbHpBpMvAfTg791zXo7PIqNYs5ORUqBWXIIU0gyAfZxA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vitest: '>=0.32.0 <1'
|
vitest: '>=0.32.0 <1'
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ampproject/remapping': 2.2.1
|
|
||||||
'@bcoe/v8-coverage': 0.2.3
|
|
||||||
istanbul-lib-coverage: 3.2.0
|
istanbul-lib-coverage: 3.2.0
|
||||||
|
istanbul-lib-instrument: 6.0.0
|
||||||
istanbul-lib-report: 3.0.1
|
istanbul-lib-report: 3.0.1
|
||||||
istanbul-lib-source-maps: 4.0.1
|
istanbul-lib-source-maps: 4.0.1
|
||||||
istanbul-reports: 3.1.6
|
istanbul-reports: 3.1.6
|
||||||
magic-string: 0.30.2
|
|
||||||
picocolors: 1.0.0
|
|
||||||
std-env: 3.4.0
|
|
||||||
test-exclude: 6.0.0
|
test-exclude: 6.0.0
|
||||||
v8-to-istanbul: 9.1.0
|
|
||||||
vitest: 0.34.2(jsdom@22.1.0)
|
vitest: 0.34.2(jsdom@22.1.0)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@ -2294,6 +2281,19 @@ packages:
|
|||||||
engines: {node: '>=8'}
|
engines: {node: '>=8'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/istanbul-lib-instrument@6.0.0:
|
||||||
|
resolution: {integrity: sha512-x58orMzEVfzPUKqlbLd1hXCnySCxKdDKa6Rjg97CwuLLRI4g3FHTdnExu1OqffVFay6zeMW+T6/DowFLndWnIw==}
|
||||||
|
engines: {node: '>=10'}
|
||||||
|
dependencies:
|
||||||
|
'@babel/core': 7.22.10
|
||||||
|
'@babel/parser': 7.22.10
|
||||||
|
'@istanbuljs/schema': 0.1.3
|
||||||
|
istanbul-lib-coverage: 3.2.0
|
||||||
|
semver: 7.5.4
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
dev: true
|
||||||
|
|
||||||
/istanbul-lib-report@3.0.1:
|
/istanbul-lib-report@3.0.1:
|
||||||
resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
|
resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
@ -3245,15 +3245,6 @@ packages:
|
|||||||
/util-deprecate@1.0.2:
|
/util-deprecate@1.0.2:
|
||||||
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
|
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
|
||||||
|
|
||||||
/v8-to-istanbul@9.1.0:
|
|
||||||
resolution: {integrity: sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==}
|
|
||||||
engines: {node: '>=10.12.0'}
|
|
||||||
dependencies:
|
|
||||||
'@jridgewell/trace-mapping': 0.3.19
|
|
||||||
'@types/istanbul-lib-coverage': 2.0.4
|
|
||||||
convert-source-map: 1.9.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/vite-node@0.34.2(@types/node@18.17.5):
|
/vite-node@0.34.2(@types/node@18.17.5):
|
||||||
resolution: {integrity: sha512-JtW249Zm3FB+F7pQfH56uWSdlltCo1IOkZW5oHBzeQo0iX4jtC7o1t9aILMGd9kVekXBP2lfJBEQt9rBh07ebA==}
|
resolution: {integrity: sha512-JtW249Zm3FB+F7pQfH56uWSdlltCo1IOkZW5oHBzeQo0iX4jtC7o1t9aILMGd9kVekXBP2lfJBEQt9rBh07ebA==}
|
||||||
engines: {node: '>=v14.18.0'}
|
engines: {node: '>=v14.18.0'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user