This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user