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
|
||||
- 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
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
[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
|
||||
[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
|
||||
|
|
33
codecov.yml
33
codecov.yml
|
@ -6,48 +6,21 @@ coverage:
|
|||
range: "70...100"
|
||||
status:
|
||||
project:
|
||||
default: off
|
||||
types:
|
||||
flags:
|
||||
- types
|
||||
target: auto
|
||||
unit:
|
||||
default:
|
||||
flags:
|
||||
- unit
|
||||
target: auto
|
||||
integration:
|
||||
flags:
|
||||
- integration
|
||||
target: auto
|
||||
patch:
|
||||
default: off
|
||||
types:
|
||||
flags:
|
||||
- types
|
||||
target: 90%
|
||||
base: pr
|
||||
unit:
|
||||
default:
|
||||
flags:
|
||||
- unit
|
||||
target: 90%
|
||||
base: pr
|
||||
integration:
|
||||
flags:
|
||||
- integration
|
||||
target: 90%
|
||||
base: pr
|
||||
changes:
|
||||
default: off
|
||||
types:
|
||||
flags:
|
||||
- types
|
||||
unit:
|
||||
default:
|
||||
flags:
|
||||
- unit
|
||||
integration:
|
||||
flags:
|
||||
- integration
|
||||
comment: off
|
||||
flags:
|
||||
types:
|
||||
joined: false
|
||||
|
|
Loading…
Reference in New Issue