ci: improve codecov report (#19430)
Github Actions / lint (push) Waiting to run Details
Github Actions / validate-legacy-node (push) Waiting to run Details
Github Actions / types (push) Waiting to run Details
Github Actions / basic (push) Waiting to run Details
Github Actions / unit (push) Waiting to run Details
Github Actions / integration (10.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (10.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (10.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (10.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (10.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (10.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (12.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (14.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (16.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (18.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (18.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (20.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (20.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (20.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (22.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (22.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (22.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (22.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (22.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (22.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (23.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (23.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (lts/*, ubuntu-latest, a, 1) (push) Blocked by required conditions Details
Github Actions / integration (lts/*, ubuntu-latest, b, 1) (push) Blocked by required conditions Details

This commit is contained in:
Alexander Akait 2025-04-17 15:25:17 +03:00 committed by GitHub
parent b1bc97a303
commit 4211c97f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 61 additions and 33 deletions

View File

@ -48,6 +48,38 @@ jobs:
yarn upgrade typescript@5.0 yarn upgrade typescript@5.0
yarn --frozen-lockfile yarn --frozen-lockfile
yarn type-validate yarn type-validate
validate-legacy-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 10.x
cache: "yarn"
# 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: basic:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -61,24 +93,6 @@ jobs:
- run: yarn link --frozen-lockfile || true - run: yarn link --frozen-lockfile || true
- run: yarn link webpack --frozen-lockfile - run: yarn link webpack --frozen-lockfile
- run: yarn test:basic --ci - run: yarn test:basic --ci
- uses: codecov/codecov-action@v5
with:
flags: basic
functionalities: gcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
validate-legacy-node:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 10.x
cache: "yarn"
# 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
unit: unit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -100,7 +114,6 @@ jobs:
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
flags: unit flags: unit
functionalities: gcov
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
integration: integration:
@ -191,6 +204,5 @@ jobs:
- uses: codecov/codecov-action@v5 - uses: codecov/codecov-action@v5
with: with:
flags: integration flags: integration
functionalities: gcov
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@ -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/master/graph/badge.svg?token=mDP3mQJNnn [cover]: https://codecov.io/gh/webpack/webpack/branch/main/graph/badge.svg?token=mDP3mQJNnn
[cover-url]: https://codecov.io/gh/webpack/webpack [cover-url]: https://codecov.io/gh/webpack/webpack

View File

@ -7,31 +7,47 @@ coverage:
status: status:
project: project:
default: off default: off
basic: types:
flags: basic flags:
- types
target: auto
unit:
flags:
- unit
target: auto target: auto
integration: integration:
flags: integration flags:
- integration
target: auto target: auto
patch: patch:
default: off default: off
basic: types:
flags: basic flags:
- types
target: 90%
base: pr
unit:
flags:
- unit
target: 90% target: 90%
base: pr base: pr
integration: integration:
flags: integration flags:
- integration
target: 90% target: 90%
base: pr base: pr
changes: changes:
default: off default: off
basic: types:
flags: basic flags:
target: 0% - types
unit:
flags:
- unit
integration: integration:
flags: integration flags:
target: 0% - integration
comment: off comment: off
flags: flags:
basic: types:
joined: false joined: false