Chrome DevTools for coding agents
ci: integrate bundle smoke test without node_modules into pre-release workflow (#2817)
Alex Rudenko069ab27ca642
diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.ymlindex 05ee6889..34752b81 100644--- a/.github/workflows/pre-release.yml+++ b/.github/workflows/pre-release.yml@@ -11,8 +11,15 @@ on:jobs:pre-release:- name: 'Verify artifacts before release'- runs-on: ubuntu-latest+ name: 'Verify artifacts before release (${{ matrix.os }})'+ runs-on: ${{ matrix.os }}+ strategy:+ fail-fast: false+ matrix:+ os:+ - ubuntu-latest+ - windows-latest+ - macos-lateststeps:- name: Check out repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -29,18 +36,35 @@ jobs:# Ensure npm 11.5.1 or later is installed- name: Update npm+ shell: bashrun: npm install -g npm@latest- name: Install dependencies+ shell: bashrun: npm ci+ env:+ PUPPETEER_SKIP_DOWNLOAD: true- name: Build and bundle+ shell: bashrun: npm run bundleenv:NODE_ENV: 'production'- name: Verify server.json+ shell: bashrun: npm run verify-server-json-version- name: Verify npm package+ shell: bashrun: npm run verify-npm-package++ - name: Remove node_modules+ shell: bash+ run: rm -rf node_modules++ - name: Smoke test bundled binaries+ shell: bash+ run: |+ node ./build/src/bin/chrome-devtools-mcp.js --version+ node ./build/src/bin/chrome-devtools.js --versiondiff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.ymldeleted file mode 100644index 28e0a0f8..00000000--- a/.github/workflows/smoke-test.yml+++ /dev/null@@ -1,58 +0,0 @@-name: Bundle smoke test--permissions:- contents: read--on:- merge_group:- push:- branches:- - main- pull_request:--jobs:- smoke-test:- name: '[Required] Bundle smoke test (${{ matrix.os }})'- runs-on: ${{ matrix.os }}- strategy:- fail-fast: false- matrix:- os:- - ubuntu-latest- - windows-latest- - macos-latest-- steps:- - name: Check out repository- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1- with:- fetch-depth: 2- submodules: true-- - name: Set up Node.js- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0- with:- cache: npm- node-version-file: '.nvmrc'-- - name: Install dependencies- shell: bash- run: npm ci- env:- PUPPETEER_SKIP_DOWNLOAD: true-- - name: Bundle- shell: bash- run: npm run bundle- env:- NODE_ENV: 'production'-- - name: Remove node_modules- shell: bash- run: rm -rf node_modules-- - name: Smoke test bundled binaries- shell: bash- run: |- node ./build/src/bin/chrome-devtools-mcp.js --version- node ./build/src/bin/chrome-devtools.js --version