Skip to content

Run test

Run test #18

Workflow file for this run

name: Run test
on:
workflow_dispatch:
inputs: {}
permissions:
contents: read
packages: read
concurrency:
# cancel already in progress jobs
group: ${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
test_run:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate config
run: bash ./scripts/generate.sh compose
- name: Login to GitHub Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
run: docker-compose -f "docker-compose.yaml" build
- name: Run test container
run: docker-compose -f "docker-compose.yaml" -f "docker-compose.test.yaml" run --rm odoo
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yaml" down