44 行
917 B
YAML
44 行
917 B
YAML
name: ci-minimal
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check-minimal:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: npm
|
|
cache-dependency-path: |
|
|
server/package-lock.json
|
|
client/package-lock.json
|
|
|
|
- name: Install server dependencies
|
|
working-directory: server
|
|
run: npm ci
|
|
|
|
- name: Install client dependencies
|
|
working-directory: client
|
|
run: npm ci
|
|
|
|
- name: Run minimal checks
|
|
run: ./scripts/check-minimal.sh
|
|
|
|
- name: Inspect vitest coverage
|
|
working-directory: server
|
|
run: |
|
|
npm run test:coverage
|
|
node ../scripts/coverage_gate.js --mode=ci
|