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