diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml new file mode 100644 index 0000000..427ee54 --- /dev/null +++ b/.github/workflows/quality.yml @@ -0,0 +1,39 @@ +name: Quality Checks + +on: + pull_request: + branches: [main, develop] + push: + branches: [main, develop] + +jobs: + quality: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run type checking + run: npx tsc --noEmit + + - name: Run linting + run: npm run lint + + - name: Run formatting check + run: npx prettier --check packages/*/src/**/*.ts + + - name: Run tests + run: npm test + + - name: Build packages + run: npm run build \ No newline at end of file