ci: harden P0 workflow checks (#1077)

This commit is contained in:
Zhicheng Han
2026-05-28 02:26:02 +02:00
committed by GitHub
parent 6a9cb2450a
commit 21bb8385f2
7 changed files with 11604 additions and 18 deletions
+16 -2
View File
@@ -1,11 +1,21 @@
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
- base
permissions:
contents: read
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
runs-on: ubuntu-latest
@@ -17,10 +27,14 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 23
node-version: 24
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm install
run: |
npm ci --ignore-scripts
npm rebuild node-pty
- name: Test with coverage
run: npm run test:coverage