Skip to content

Generated comment updated #3

Generated comment updated

Generated comment updated #3

Workflow file for this run

on: push
name: Test
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.4', '8.0', '8.1', '8.2' ]
services:
propel_mysql:
image: ghcr.io/propeller-orm/propeller-orm/mysql-test-image
env:
MYSQL_DATABASE: "test"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 3306:3306
# Set health checks to wait until database has started
options: >-
--health-cmd "mysqladmin ping -h 127.0.0.1 --silent"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Install Dependencies
run: composer install
- name: Init Database
run: mysql --host=127.0.0.1 --user=root --password='' < ./test/reset_database.sql
- name: Test
run: make test