Trying to fix CI
Some checks failed
Main Workflow / Test (20.x) (push) Successful in 4m4s
Main Workflow / Test (18.x) (push) Successful in 4m9s
Main Workflow / Security Audit (push) Successful in 2m44s
Main Workflow / Code Quality Check (push) Successful in 2m51s
Main Workflow / Notification (push) Successful in 43s
Main Workflow / Build (push) Failing after 2m3s

This commit is contained in:
2025-07-23 07:36:31 +00:00
parent feb9439dbc
commit ce4eea4fb4

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
test: test:
name: Test and Build name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -29,26 +29,11 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Run linter
run: npm run lint
- name: Build project
run: npm run build
- name: Run tests - name: Run tests
run: npm test run: npm test
- name: Generate coverage report - name: Generate coverage report
run: npm test -- --coverage --coverageReporters=lcov run: npm test -- --coverage --coverageReporters=lcov
- name: Upload coverage reports
uses: https://github.com/actions/upload-artifact@v3
if: matrix.node-version == '18.x'
with:
github-server-url: https://gitea.p-lao.com
name: coverage-reports
path: coverage/
retention-days: 30
security: security:
name: Security Audit name: Security Audit
@ -75,8 +60,8 @@ jobs:
- name: Check for vulnerabilities - name: Check for vulnerabilities
run: npm audit --audit-level=high --production run: npm audit --audit-level=high --production
build-artifacts: build:
name: Build Release Artifacts name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test, security] needs: [test, security]
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
@ -115,16 +100,7 @@ jobs:
cd dist cd dist
tar -czf ../drawio-mcp-server-${{ github.sha }}.tar.gz . tar -czf ../drawio-mcp-server-${{ github.sha }}.tar.gz .
cd .. cd ..
echo "✅ Build artifacts created: drawio-mcp-server-${{ github.sha }}.tar.gz"
- name: Upload build artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
github-server-url: https://gitea.p-lao.com
name: release-artifacts
path: |
drawio-mcp-server-${{ github.sha }}.tar.gz
dist/
retention-days: 90
lint-check: lint-check:
name: Code Quality Check name: Code Quality Check
@ -152,14 +128,15 @@ jobs:
run: npm run lint -- --format=json --output-file=lint-results.json run: npm run lint -- --format=json --output-file=lint-results.json
continue-on-error: true continue-on-error: true
- name: Upload lint results - name: Display lint summary
uses: https://github.com/actions/upload-artifact@v3
if: always() if: always()
with: run: |
github-server-url: https://gitea.p-lao.com if [ -f lint-results.json ]; then
name: lint-results echo "✅ Lint results generated: lint-results.json"
path: lint-results.json echo "Lint check completed"
retention-days: 7 else
echo "⚠️ No lint results file found"
fi
notify: notify:
name: Notification name: Notification