mirror of https://github.com/webpack/webpack.git
ci: fix coverage
This commit is contained in:
parent
4211c97f9b
commit
00a888a804
|
@ -60,26 +60,6 @@ jobs:
|
||||||
# Remove `devDependencies` from `package.json` to avoid `yarn install` compatibility error
|
# Remove `devDependencies` from `package.json` to avoid `yarn install` compatibility error
|
||||||
- run: node -e "const content = require('./package.json');delete content.devDependencies;require('fs').writeFileSync('package.json', JSON.stringify(content, null, 2));"
|
- run: node -e "const content = require('./package.json');delete content.devDependencies;require('fs').writeFileSync('package.json', JSON.stringify(content, null, 2));"
|
||||||
- run: yarn install --production --frozen-lockfile
|
- run: yarn install --production --frozen-lockfile
|
||||||
types:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Use Node.js
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: lts/*
|
|
||||||
cache: "yarn"
|
|
||||||
- run: yarn --frozen-lockfile
|
|
||||||
- run: yarn link --frozen-lockfile || true
|
|
||||||
- run: yarn link webpack --frozen-lockfile
|
|
||||||
- run: yarn cover:types
|
|
||||||
- uses: codecov/codecov-action@v5
|
|
||||||
with:
|
|
||||||
flags: types
|
|
||||||
disable_search: true
|
|
||||||
files: ./coverage/coverage-types.json
|
|
||||||
env:
|
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
basic:
|
basic:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -676,5 +676,5 @@ Before we started using OpenCollective, donations were made anonymously. Now tha
|
||||||
[builds2-url]: https://dev.azure.com/webpack/webpack/_build/latest?definitionId=3&branchName=main
|
[builds2-url]: https://dev.azure.com/webpack/webpack/_build/latest?definitionId=3&branchName=main
|
||||||
[dependency-review-url]: https://github.com/webpack/webpack/actions/workflows/dependency-review.yml
|
[dependency-review-url]: https://github.com/webpack/webpack/actions/workflows/dependency-review.yml
|
||||||
[dependency-review]: https://github.com/webpack/webpack/actions/workflows/dependency-review.yml/badge.svg
|
[dependency-review]: https://github.com/webpack/webpack/actions/workflows/dependency-review.yml/badge.svg
|
||||||
[cover]: https://codecov.io/gh/webpack/webpack/branch/main/graph/badge.svg?token=mDP3mQJNnn
|
[cover]: https://codecov.io/gh/webpack/webpack/graph/badge.svg?token=mDP3mQJNnn
|
||||||
[cover-url]: https://codecov.io/gh/webpack/webpack
|
[cover-url]: https://codecov.io/gh/webpack/webpack
|
||||||
|
|
33
codecov.yml
33
codecov.yml
|
@ -6,48 +6,21 @@ coverage:
|
||||||
range: "70...100"
|
range: "70...100"
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
default: off
|
default:
|
||||||
types:
|
|
||||||
flags:
|
|
||||||
- types
|
|
||||||
target: auto
|
|
||||||
unit:
|
|
||||||
flags:
|
flags:
|
||||||
- unit
|
- unit
|
||||||
target: auto
|
|
||||||
integration:
|
|
||||||
flags:
|
|
||||||
- integration
|
- integration
|
||||||
target: auto
|
target: auto
|
||||||
patch:
|
patch:
|
||||||
default: off
|
default:
|
||||||
types:
|
|
||||||
flags:
|
|
||||||
- types
|
|
||||||
target: 90%
|
|
||||||
base: pr
|
|
||||||
unit:
|
|
||||||
flags:
|
flags:
|
||||||
- unit
|
- unit
|
||||||
target: 90%
|
|
||||||
base: pr
|
|
||||||
integration:
|
|
||||||
flags:
|
|
||||||
- integration
|
- integration
|
||||||
target: 90%
|
target: 90%
|
||||||
base: pr
|
base: pr
|
||||||
changes:
|
changes:
|
||||||
default: off
|
default:
|
||||||
types:
|
|
||||||
flags:
|
|
||||||
- types
|
|
||||||
unit:
|
|
||||||
flags:
|
flags:
|
||||||
- unit
|
- unit
|
||||||
integration:
|
|
||||||
flags:
|
|
||||||
- integration
|
- integration
|
||||||
comment: off
|
comment: off
|
||||||
flags:
|
|
||||||
types:
|
|
||||||
joined: false
|
|
||||||
|
|
Loading…
Reference in New Issue