Skip to content

EspoCRM – Open Source CRM Application

ts-check workflow

Yuriicf21b197fb58
diff --git a/.github/workflows/ts-check.yml b/.github/workflows/ts-check.yml
new file mode 100644
index 0000000000..66f9b010bf
--- /dev/null
+++ b/.github/workflows/ts-check.yml
@@ -0,0 +1,36 @@
+name: TypeScript static analysis
+
+on:
+ push:
+ branches:
+ - 'master'
+ - 'fix'
+ paths:
+ - '**.ts'
+ - 'tsconfig.json'
+
+ pull_request:
+ paths:
+ - '**.ts'
+ - 'tsconfig.json'
+
+jobs:
+ typescript-check:
+ name: TypeScript check
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Run TypeScript check
+ run: npx tsc --noEmit