diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..8618994 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: CI + +on: push + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + code-checks: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + version: 9.9.0 + run_install: false + - uses: actions/setup-node@v4 + with: + cache: pnpm + cache-dependency-path: ./pnpm-lock.yaml + node-version-file: './package.json' + - name: Install dependencies + run: pnpm install + - run: pnpm type-check + - run: pnpm lint diff --git a/package.json b/package.json index dd89582..0616705 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", + "type-check": "tsc --noEmit --incremental --pretty", "lint": "eslint '**/*.{ts,tsx}' --ignore-pattern 'dist/*' --max-warnings=0", "preview": "vite preview" },