mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 06:42:27 +08:00
* chore: clean up root folder by moving config files - Move renovate.json to .github/renovate.json - Move electron-builder.yml to electron/electron-builder.yml - Move electron.d.ts to electron/electron.d.ts - Delete proxy.ts (unused dead code) - Update package.json dist scripts with --config flag - Use tsconfig.json files array for electron.d.ts (bypasses exclude) Reduces git-tracked root files from 23 to 19. * chore: regenerate package-lock.json to fix CI * fix: regenerate package-lock.json with cross-platform deps
45 lines
754 B
YAML
45 lines
754 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Type check
|
|
run: npx tsc --noEmit
|
|
|
|
- name: Lint check
|
|
run: npm run check
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Security audit
|
|
run: npm audit --audit-level=high --omit=dev
|