Skip to content

Commit

Permalink
chore: add test diff to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Nov 16, 2023
1 parent f87e8a9 commit 0514174
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ jobs:
if: ${{ inputs.target == 'x86_64-pc-windows-msvc' && matrix.node != '14' }}
run: pnpm run test:ci

### Diff with webpack
- name: Diff test
timeout-minutes: 15
run: pnpm run test:diff

### write the latest metric into branch gh-pages
### Note that, We can't merge this script, because this script only runs on main branch
- name: Update main branch test compatibility metric
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"prepare": "is-ci || husky install",
"pnpm:devPreinstall": "is-ci || node ./scripts/doctor.js",
"test:example": "pnpm --filter \"example-*\" build",
"test:diff": "pnpm --filter \"@rspack/*\" test-diff",
"test:unit": "pnpm --filter \"@rspack/*\" test",
"test:e2e": "pnpm --filter \"@rspack-e2e/*\" test",
"test:ci": "cross-env NODE_OPTIONS=--max_old_space_size=8192 pnpm run build:js && pnpm run test:example && pnpm run test:unit && pnpm test:webpack",
Expand Down

0 comments on commit 0514174

Please sign in to comment.