51 行
1.2 KiB
YAML
51 行
1.2 KiB
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: Install BIFF8 roundtrip verifier
|
|
run: python3 -m pip install --disable-pip-version-check xlrd==2.0.2
|
|
|
|
- name: Verify payment-order BIFF8 contract
|
|
working-directory: server
|
|
run: node scripts/check-payment-order-xls-roundtrip.js
|
|
|
|
- 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
|