Skip to content

a few optimization to static-cpp generator #15

a few optimization to static-cpp generator

a few optimization to static-cpp generator #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Check format issues
id: format-check
run: |
# Run formatter and check if any files were modified
npm run format
# Check if any files were changed by the formatter
node -e "a=require('child_process').execSync('git diff --name-only').toString();if(a)throw new Error('Following source files are not formatted: (did you run \"npm run format\"?)\n'+a)"
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm test