Skip to content

tests with postgres #387

tests with postgres

tests with postgres #387

Workflow file for this run

name: Tests
on:
push:
branches:
- master
- release/*
pull_request:
workflow_dispatch:
jobs:
mysql-tests:
name: Setup testing environment and execute tests
uses: cybex-gmbh/github-workflows/.github/workflows/tests.yml@feature/pass-db-image
strategy:
fail-fast: true
matrix:
db-image: [ "mysql:8.0", "postgres:17" ]
php: [ 8.2, 8.3 ]
laravel: [ 11.* ]
dependency-version: [ prefer-stable ]
with:
DATABASE_IMAGE: ${{ matrix.db-image }}
DATABASE_NAME: protector_test
PHP_VERSION: ${{ matrix.php }}
LARAVEL_VERSION: ${{ matrix.laravel }}
DEPENDENCY_VERSION: ${{ matrix.dependency-version }}
TEST_COMMANDS: vendor/bin/phpunit -c phpunit-ci.xml.dist
#
# postgres-tests:
# name: Run tests on PostgreSQL
# uses: cybex-gmbh/github-workflows/.github/workflows/tests.yml@feature/pass-db-image
# strategy:
# fail-fast: true
# matrix:
# php: [ 8.2, 8.3 ]
# laravel: [ 11.* ]
# dependency-version: [ prefer-stable ]
# with:
# DATABASE_IMAGE: postgres:17
# DATABASE_NAME: protector_test
# DATABASE_OPTIONS: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
# PHP_VERSION: ${{ matrix.php }}
# LARAVEL_VERSION: ${{ matrix.laravel }}
# DEPENDENCY_VERSION: ${{ matrix.dependency-version }}
# TEST_COMMANDS: vendor/bin/phpunit -c phpunit-ci.xml.dist