diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..29adf38 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,44 @@ +name: Build checks + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + subscript: + name: Subscript + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Typecheck + run: npm run typecheck + + - name: Lint + run: npm run lint + + - name: Format check + run: npm run format:check + + - name: Test + run: npm run test diff --git a/package.json b/package.json index c9f71fc..2dad6b6 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "dev": "turbo run dev", "lint": "oxlint .", "format": "oxfmt .", + "format:check": "oxfmt . --check", "typecheck": "turbo run typecheck", "test": "turbo run test", "changeset": "turbo run typecheck lint format build test && changeset",