Run test #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |