Skip to content

Commit

Permalink
Merge pull request #4 from ecosoft-odoo/15.0-fix-test_build_odoo_yml
Browse files Browse the repository at this point in the history
[ADD] test_build_odoo.yml
  • Loading branch information
newtratip authored Sep 1, 2023
2 parents 26fe284 + f0b3754 commit a6912a0
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 4 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/test_build_odoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install docker
run: |
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose
- name: Install the dependencies
run: |
python3 -m pip install --user pipx
pipx install copier
pipx install invoke
pipx install pre-commit
pipx ensurepath
- name: Build odoo
run: invoke develop img-build git-aggregate resetdb start
- name: Install addons
run: |
invoke install --extra --private
15 changes: 15 additions & 0 deletions .github/workflows/test_pre_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Test Pre Commit

on:
pull_request:
branches:
- 15.0

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
pip install pre-commit
pre-commit run -a
5 changes: 5 additions & 0 deletions odoo/custom/src/addons.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
partner-contact:
- partner_bank_code
- partner_company_type
- partner_fax
- partner_firstname
14 changes: 11 additions & 3 deletions odoo/custom/src/repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@
# Shallow repositories ($DEPTH_DEFAULT=1) are faster & thinner
# You may need a bigger depth when merging PRs (use $DEPTH_MERGE
# for a sane value of 100 commits)
depth: $DEPTH_DEFAULT
depth: $DEPTH_MERGE
remotes:
ocb: https://github.com/OCA/OCB.git
odoo: https://github.com/odoo/odoo.git
openupgrade: https://github.com/OCA/OpenUpgrade.git
target: ocb $ODOO_VERSION
merges:
- ocb $ODOO_VERSION
# Example of a merge of the PR with the number <PR>
# - oca refs/pull/<PR>/head
- odoo refs/pull/126619/head # [15.0][FIX] hr_expense: show paid_by and message refuse duplicate

partner-contact:
defaults:
depth: $DEPTH_DEFAULT
remotes:
origin: https://github.com/OCA/partner-contact.git
target: origin $ODOO_VERSION
merges:
- origin $ODOO_VERSION

0 comments on commit a6912a0

Please sign in to comment.