|
| 1 | +# π§ GitHub Configuration |
| 2 | + |
| 3 | +This directory contains GitHub-specific configuration for the Maculate Java project. |
| 4 | + |
| 5 | +## π Structure |
| 6 | + |
| 7 | +``` |
| 8 | +.github/ |
| 9 | +βββ workflows/ # GitHub Actions workflows |
| 10 | +β βββ comprehensive-ci.yml # Comprehensive CI (multi-OS, coverage) |
| 11 | +β βββ release.yml # Production release workflow |
| 12 | +β βββ prerelease.yml # Automatic pre-releases |
| 13 | +β βββ pr-validation.yml # Pull request validation |
| 14 | +βββ dependabot.yml # Automated dependency updates |
| 15 | +βββ labeler.yml # Auto-labeling configuration |
| 16 | +``` |
| 17 | + |
| 18 | +## π Workflows |
| 19 | + |
| 20 | +### Comprehensive CI (comprehensive-ci.yml) |
| 21 | +- Runs on every push to main and on pull requests |
| 22 | +- Tests on multiple OS (Ubuntu, macOS, Windows) and Node versions (18, 20, 22) |
| 23 | +- Runs linting, formatting checks, and tests |
| 24 | +- Generates coverage reports |
| 25 | + |
| 26 | +### Release (release.yml) |
| 27 | +- Manual trigger via GitHub Actions UI |
| 28 | +- Supports patch, minor, major, and pre-release versions |
| 29 | +- Automatically publishes to npm |
| 30 | +- Creates GitHub releases with release notes |
| 31 | + |
| 32 | +### Pre-release (prerelease.yml) |
| 33 | +- Automatically triggered on pushes to develop/next/beta/alpha branches |
| 34 | +- Creates and publishes pre-release versions to npm |
| 35 | +- Uses branch-specific dist-tags (dev, next, beta, alpha) |
| 36 | + |
| 37 | +### PR Validation (pr-validation.yml) |
| 38 | +- Validates PR title follows conventional commits format |
| 39 | +- Auto-labels PRs based on changed files |
| 40 | + |
| 41 | +## π Required Secrets |
| 42 | + |
| 43 | +Configure these in Settings β Secrets β Actions: |
| 44 | + |
| 45 | +- `NPM_TOKEN`: npm authentication token for publishing packages |
| 46 | +- `CODECOV_TOKEN`: (Optional) For uploading coverage reports |
| 47 | + |
| 48 | +## π·οΈ Labels |
| 49 | + |
| 50 | +The labeler automatically adds labels based on: |
| 51 | +- **File paths**: maculate-java, website, documentation, tests, ci, dependencies |
| 52 | +- **Branch names**: feature, bugfix, breaking-change |
| 53 | + |
| 54 | +## π¦ Dependabot |
| 55 | + |
| 56 | +Configured to: |
| 57 | +- Check for updates weekly (Mondays) |
| 58 | +- Group related dependencies (prettier, testing, linting, types) |
| 59 | +- Use semantic commit prefixes (β¬οΈ deps, β¬οΈ deps-dev) |
| 60 | +- Auto-label PRs with "dependencies" |
0 commit comments