Skip to content

ci(deps): bump actions/labeler from 5 to 6 #16

ci(deps): bump actions/labeler from 5 to 6

ci(deps): bump actions/labeler from 5 to 6 #16

Workflow file for this run

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@v4
with:
node-version: '20.x'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check all packages
run: pnpm run type-check
- name: Check for TypeScript errors
run: |
echo "Checking for TypeScript compilation errors..."
pnpm 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 packages/core/package.json || exit 1
test -f packages/examples/package.json || exit 1
test -d packages/core/src || exit 1
test -d packages/examples/src || exit 1
echo "Package structure verified."
- name: Verify examples can run
run: |
echo "Testing if examples can execute..."
pnpm run build
pnpm run example:basic
echo "Examples verified successfully."