Migrado a organización Iximi-Legacy #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: | | |
| if [ -f "package.json" ]; then | |
| npm ci | |
| else | |
| echo "No package.json found, skipping npm install" | |
| fi | |
| - name: Run basic checks | |
| run: | | |
| echo "✅ Repository structure check" | |
| [ -f "README.md" ] && echo "✓ README.md exists" || echo "✗ README.md missing" | |
| [ -f "LICENSE" ] && echo "✓ LICENSE exists" || echo "✗ LICENSE missing" | |
| [ -f ".gitignore" ] && echo "✓ .gitignore exists" || echo "✗ .gitignore missing" | |
| - name: Security scan | |
| uses: actions/stale@v5 | |
| with: | |
| days-before-stale: 30 | |
| days-before-close: 7 | |
| stale-issue-message: 'This issue has been inactive for 30 days. Please update or it will be closed.' |