mirror of
https://github.com/AIPexStudio/AIPex.git
synced 2026-05-21 05:44:54 +00:00
- Updated the CI workflow to consolidate test commands into a single step, improving clarity and efficiency. - Added debug logging in Puppeteer tests to track the loading of complex fixture URLs and the visibility of iframe elements, aiding in troubleshooting and test visibility.
54 lines
973 B
YAML
54 lines
973 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- feature-next
|
|
paths-ignore:
|
|
- "*.md"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- feature-next
|
|
paths-ignore:
|
|
- "*.md"
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: lts/*
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Install Chrome for Puppeteer
|
|
run: node node_modules/puppeteer/install.mjs
|
|
working-directory: packages/browser-runtime
|
|
|
|
- name: Format check
|
|
run: npm run format:check
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Type check
|
|
run: npm run typecheck
|
|
|
|
- name: Test
|
|
run: npm run test
|