Skip to content

Commit

Permalink
Run base Odoo tests in the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
borna-ng committed Oct 14, 2024
1 parent 9c02a73 commit 154cc4e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,14 @@ jobs:
docker manifest push "${IMAGE_BRANCH}"
docker manifest push "${IMAGE_REV}"
# TODO Push to artifactory
test:
runs-on: self-hosted
needs: combine-docker
steps:
- name: Run base Odoo tests
uses: cloudposse/github-action-docker-compose-test-run@main
with:
file: tests/docker-compose.yml
service: odoo
command: ./odoo-bin -d test --test-enable --stop
22 changes: 22 additions & 0 deletions tests/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
postgres:
image: ghcr.io/jobrad-gmbh/postgis:13-3.4-alpine
environment:
POSTGRES_USER: &pguser odoo
POSTGRES_PASSWORD: &pgpassword odoo
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 5

odoo:
image: ghcr.io/jobrad-gmbh/odoo:jobrad-15.0
tty: True
depends_on:
postgres:
condition: service_healthy
environment:
PGHOST: postgres
PGUSER: *pguser
PGPASSWORD: *pgpassword

0 comments on commit 154cc4e

Please sign in to comment.