54 行
1.4 KiB
YAML
54 行
1.4 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 venv "$RUNNER_TEMP/payment-order-venv"
|
|
"$RUNNER_TEMP/payment-order-venv/bin/pip" install --disable-pip-version-check --require-hashes -r server/requirements/payment-order-biff8.txt
|
|
echo "PAYMENT_ORDER_PYTHON_BIN=$RUNNER_TEMP/payment-order-venv/bin/python" >> "$GITHUB_ENV"
|
|
|
|
- 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
|