diff --git a/.gitea/workflows/main-workflow.yml b/.gitea/workflows/main-workflow.yml index 8b79aca..3089ed2 100644 --- a/.gitea/workflows/main-workflow.yml +++ b/.gitea/workflows/main-workflow.yml @@ -8,7 +8,7 @@ on: jobs: test: - name: Test and Build + name: Test runs-on: ubuntu-latest strategy: matrix: @@ -29,26 +29,11 @@ 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 @@ -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