chore(deps): bump @objectstack/spec from 0.8.2 to 2.0.1 #29
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality | |
| on: | |
| pull_request: | |
| branches: [ main, develop ] | |
| workflow_dispatch: | |
| jobs: | |
| quality-checks: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Type check | |
| run: npm run type-check | |
| - name: Build | |
| run: npm run build | |
| - name: Check for TypeScript errors | |
| run: | | |
| echo "Checking for TypeScript compilation errors..." | |
| npm run build 2>&1 | tee build.log | |
| if grep -i "error TS" build.log; then | |
| echo "TypeScript errors found!" | |
| exit 1 | |
| fi | |
| echo "No TypeScript errors found." | |
| - name: Check package structure | |
| run: | | |
| echo "Verifying package structure..." | |
| test -f package.json || exit 1 | |
| test -f tsconfig.json || exit 1 | |
| test -d src || exit 1 | |
| test -f src/objectstack.config.ts || exit 1 | |
| test -d src/objects || exit 1 | |
| test -d src/views || exit 1 | |
| echo "Package structure verified." | |
| - name: Verify example can run | |
| run: | | |
| echo "Testing if example can execute..." | |
| npm run example | |
| echo "Example verified successfully." |