Skip to content

test: add module diagnostic coverage #13022

test: add module diagnostic coverage

test: add module diagnostic coverage #13022

Workflow file for this run

name: CR
on:
push:
branches: [main, 'v[0-9]*']
pull_request:
types: [opened, synchronize, labeled]
workflow_dispatch:
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
release:
if: github.repository == 'vitest-dev/vitest' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'cr-tracked'))
runs-on: ubuntu-latest
name: 'Release: pkg.pr.new'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- name: Set node version to 24
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
- name: Build
run: pnpm build
env:
VITE_TEST_WATCHER_DEBUG: 'false'
- name: Publish to StackBlitz
run: pnpx pkg-pr-new publish --compact --commentWithSha --no-template --pnpm './packages/*'