ci(docker): sync byte-identical files from master to rel-820 (auto) (… #9
This file contains hidden or 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: Database | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - rel-* | |
| pull_request: | |
| branches: | |
| - master | |
| - rel-* | |
| jobs: | |
| mysql: | |
| name: Doctrine Migrations MySQL | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_DATABASE: openemr_test | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=5 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: ./.github/actions/setup-php-composer | |
| with: | |
| php-version: '8.5' | |
| - name: Create sqlconf.php | |
| run: | | |
| cat > sites/default/sqlconf.php << 'EOF' | |
| <?php | |
| $sqlconf = [ | |
| 'host' => '127.0.0.1', | |
| 'port' => 3306, | |
| 'login' => 'root', | |
| 'pass' => 'root', | |
| 'dbase' => 'openemr_test', | |
| 'db_encoding' => 'utf8mb4', | |
| ]; | |
| EOF | |
| - name: Run migrations | |
| run: ./cli migrations:migrate --no-interaction | |
| env: | |
| ENVIRONMENT: test | |
| - name: Verify status | |
| run: ./cli migrations:status | |
| env: | |
| ENVIRONMENT: test | |
| # # Placeholder jobs for future database support | |
| # sqlite: | |
| # name: SQLite (placeholder) | |
| # runs-on: ubuntu-24.04 | |
| # if: false # Disabled until SQLite support is implemented | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - uses: shivammathur/setup-php@v2 | |
| # with: | |
| # php-version: '8.5' | |
| # - run: composer install --no-progress | |
| # - name: Run migrations | |
| # env: | |
| # DATABASE_URL: sqlite:///:memory: | |
| # run: vendor/bin/doctrine-migrations migrate --no-interaction | |
| # postgresql: | |
| # name: PostgreSQL (placeholder) | |
| # runs-on: ubuntu-24.04 | |
| # if: false # Disabled until PostgreSQL support is implemented | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - uses: shivammathur/setup-php@v2 | |
| # with: | |
| # php-version: '8.5' | |
| # - run: composer install --no-progress | |
| # - name: Run migrations | |
| # env: | |
| # DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/openemr_test | |
| # run: vendor/bin/doctrine-migrations migrate --no-interaction |