From ae81b4f0830c92054c9707a3fbf8caf3e88f61fe Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 12:38:58 +0000 Subject: [PATCH] Add Gitea Actions workflow: ci.yml --- .gitea/workflows/ci.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4fff236..611571c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -20,19 +20,13 @@ jobs: node-version: '20' - name: Install dependencies - run: | - npm install 2>&1 || echo "npm install failed" + run: npm install - - name: List files - run: ls -la + - name: Run ESLint + run: npx eslint . --ext .ts --max-warnings=10 - - name: Check package.json - run: cat package.json + - name: Run tests + run: npm test - - name: Run build - run: | - if [ -f "dist/index.js" ]; then - echo "Build exists" - else - npx tsc 2>&1 || echo "Build failed" - fi + - name: TypeScript build + run: npx tsc