Skip to content

tests with postgres #386

tests with postgres

tests with postgres #386

Workflow file for this run

name: Tests

Check failure on line 1 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml: (Line: 18, Col: 29, Idx: 399) - (Line: 18, Col: 34, Idx: 404): While scanning a plain scalar, find unexpected ':'.
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