diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fe9a32a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + pull_request: + paths-ignore: + - '**/*.md' + - 'docs/**' + - '.claude/**' + - '.vscode/**' + - 'LICENSE' + - '.gitignore' + push: + branches: [main] + paths-ignore: + - '**/*.md' + - 'docs/**' + - '.claude/**' + - '.vscode/**' + - 'LICENSE' + - '.gitignore' + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-node@v7 + with: + node-version-file: .nvmrc + cache: npm + + - run: npm ci + - run: npm run typecheck + - run: npm run lint + - run: npm test + - run: npm run build