Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

ci: add pull request quality workflow

webadderall372d21cd7210
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..d96e9908
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,44 @@
+name: CI
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ci-${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ quality:
+ name: Lint, Typecheck, Test
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: npm
+
+ - name: Install dependencies
+ run: npm ci --ignore-scripts
+
+ - name: Lint
+ run: npm run lint
+
+ - name: Typecheck
+ run: npx tsc --noEmit
+
+ - name: Unit tests
+ run: npm run test
+
+ - name: Verify i18n keys
+ run: npm run i18n:check