Commit Graph

14 Commits

Author SHA1 Message Date
Stéphan Sainléger
91111ad873 [ADD] common: ship a standard .gitignore to all repos
The pre-commit workflow runs
``git ls-files --others --exclude-from=.gitignore`` to detect files
generated by hooks that are not committed. This aborts with
"cannot use .gitignore as an exclude file" in repos that have no root
.gitignore (all Elabore addons repos).

Ship the OCA-standard .gitignore via config/common so every repo has one.
2026-09-23 20:14:38 +02:00
Stéphan Sainléger
a6bc3ab6ec [IMP] prettier-format deployed pre-commit configs (16.0, 18.0)
The ``oca-gen-addon-readme`` entry is a multi-line YAML scalar. The
prettier hook rewrites it on every run in each target repo, producing a
recurring local diff against the deployed copy. Format the source configs
with the exact prettier versions deployed per version (2.7.1 for 16.0,
3.3.3 for 18.0) so the deployed files already match the hook output.

No functional change: YAML folds the scalar newlines into spaces either
way.
2026-09-23 19:49:36 +02:00
Stéphan Sainléger
98f943275e [FIX] run tests: shell checkout (doodba image has no node) 2026-09-23 14:06:14 +02:00
Stéphan Sainléger
a46c77b010 [FIX] use ubuntu-22.04 runner label in deployment workflow 2026-09-23 12:03:58 +02:00
Stéphan Sainléger
e1c1a86ee7 [ADD] Odoo tests workflow for 16.0 and 18.0 2026-09-23 11:23:15 +02:00
Stéphan Sainléger
f86c403ab2 [IMP] push directly to branches instead of creating PRs
CI config changes are low-risk and don't affect business code.
Direct push eliminates the need to manually validate 50+ PRs.

Changes:
- Push commits directly to target branches (no AGit PR flow)
- Simplified commit message: '[CI] sync config from odoo-elabore-ci'
- Update README to reflect direct push behavior
2026-03-10 17:11:03 +01:00
Stéphan Sainléger
61a9e10b17 [IMP] manual deployment workflow with dry-run and filters
Replace automatic deployment (on push) with manual workflow_dispatch:
- Version filter: deploy to all versions or specific one (16.0, 18.0)
- Repo filter: deploy to all repos or comma-separated list
- Dry-run mode: preview changes without creating PRs
- Detailed summary with emoji indicators and statistics

Benefits:
- Full control over deployment scope and timing
- Safe preview before creating 50+ PRs
- Targeted deployments for testing

Update README with new deployment guide and examples.
2026-03-10 16:59:45 +01:00
Stéphan Sainléger
3eadd1f0c4 [ADD] comprehensive README documentation
Document repository purpose, architecture, workflows, and usage:
- CI deployment workflow explanation
- Linting tools overview
- How to modify CI configuration
- How to add new Odoo version support
- Configuration files explanation
- Secrets setup
- Version differences (16.0 vs 18.0)
2026-03-07 17:00:16 +01:00
Stéphan Sainléger
25e9370cc0 [ADD] support for Odoo 18.0 configuration
Add config/18.0/ with configuration files based on OCA standards:
- .pylintrc and .pylintrc-mandatory (valid-odoo-versions=18.0)
- .ruff.toml (Python linting)
- .pre-commit-config.yaml with updated hooks:
  - whool-init (new in 18.0)
  - oca-gen-external-dependencies (new in 18.0)
  - Updated prettier 3.x and eslint 9.x
- eslint.config.cjs and prettier.config.cjs (new flat config format)

Also move .eslintrc.yml and .prettierrc.yml to config/16.0/ since
18.0 uses the new CJS flat config format instead of YAML.
2026-03-07 16:54:39 +01:00
Stéphan Sainléger
20b9ce48d0 [REF] use single main branch with per-version config directories
Replace per-branch versioning (16.0, 18.0...) with a single main branch
containing version-specific subdirectories under config/.

Structure:
- config/common/: shared files deployed to all versions
- config/16.0/: Odoo 16.0 specific configs (pylintrc, ruff, pre-commit)

The deploy workflow now:
- Triggers on push to main
- Auto-detects available versions from config/*/
- For each target repo, deploys common + version-specific files

Also enables Gitea native cache in pre-commit workflow.
2026-03-07 16:48:28 +01:00
Stéphan Sainléger
bc57d359d0 [IMP] activate the use of gitea cache for environment build 2026-03-07 16:19:45 +01:00
jscampucci
5152368bcc [CLN] set the repo name dynamically
All checks were successful
Sync Config to All Odoo Repositories / sync (push) Successful in 1m56s
2025-09-17 15:36:21 +02:00
Stéphan Sainléger
954e119083 [IMP] add action to deploy config on all Elabore's Odoo addons repos
Some checks failed
Sync Config to All Odoo Repositories / sync (push) Has been cancelled
2025-09-17 12:50:59 +02:00
20f28b9fd5 Initial commit 2025-09-15 15:52:44 +02:00