diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml new file mode 100644 index 0000000..47c7642 --- /dev/null +++ b/.github/workflows/code-quality.yaml @@ -0,0 +1,31 @@ +name: Check code quality + +on: + push: + +jobs: + check-code-quality: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 8 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - run: pnpm lint + - run: pnpm typecheck + - run: pnpm test + - run: pnpx prettier --check .