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