Skip to content

Update generate-stackbrew-library.sh from upstream build pack #102

Update generate-stackbrew-library.sh from upstream build pack

Update generate-stackbrew-library.sh from upstream build pack #102

Workflow file for this run

name: Internal test suite
permissions:
contents: read
on:
pull_request:
push:
jobs:
test-apache-container:
name: Test (${{ matrix.configuration }}) on database ${{ matrix.database-image }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
database-image: ["mariadb:10.6", "mariadb:10.11", "mariadb:latest", "mysql:5.7", "mysql:latest"]
configuration: ["default", "one-host", "config-mount-dir", "fs-import-export", "different-apache-port"]
steps:
- uses: actions/checkout@v3
- name: Switch to MySQL compatible ENVs
if: ${{ contains(matrix.database-image, 'mysql') }}
working-directory: ./testing/docker-compose/
run: sed -i 's/MARIADB_ROOT_PASSWORD/MYSQL_ROOT_PASSWORD/' ./docker-compose.testing-${{ matrix.configuration }}.yml
- name: Switch to MySQL compatible healthcheck
if: ${{ contains(matrix.database-image, 'mysql') }}
working-directory: ./testing/docker-compose/
run: sed -i 's/mariadb-admin/mysqladmin/' ./docker-compose.testing-${{ matrix.configuration }}.yml
- name: Build images
working-directory: ./testing/
run: docker-compose -f ./docker-compose/docker-compose.testing-${{ matrix.configuration }}.yml build
- name: Run ${{ matrix.configuration }} tests
working-directory: ./testing/
run: docker-compose -f ./docker-compose/docker-compose.testing-${{ matrix.configuration }}.yml up --build --abort-on-container-exit --exit-code-from=sut
env:
DB: ${{ matrix.database-image }}