Skip to content

wip

wip #1

Workflow file for this run

name: "CI Tests"
on:
push:
pull_request:
jobs:
tests:
name: "PHP ${{ matrix.php }} ${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
composer-flags:
- '--prefer-stable'
include:
# Lowest Deps
- php: 7.4
composer-flags: '--prefer-stable --prefer-lowest'
services:
db:
# Docker Hub image
image: mariadb:10.11.8
ports:
- 3306:3306
environment:

Check failure on line 32 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI Tests

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 32, Col: 9): Unexpected value 'environment'
MARIADB_USER: test
MARIADB_PASSWORD: foobar
MARIADB_DATABASE: bookstore
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 2
- name: "Cache Composer packages"
uses: "actions/cache@v3"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-flags-${{ matrix.composer-flags }}"
restore-keys: "php-"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
tools: "composer:v2,flex"
- name: "Set Composer stability"
run: "composer config minimum-stability dev"
- name: "Install dependencies"
run: "composer update ${{ matrix.composer-flags }} --prefer-dist"
- name: "Validate composer"
run: "composer validate --strict --no-check-lock --no-check-all"
- name: "Build database"
run: |
cp Tests/Fixtures/App/app/config/parameters.yml.dist Tests/Fixtures/App/app/config/parameters.yml
composer install --dev
./Tests/Fixtures/App/app/console propel:database:create
./Tests/Fixtures/App/app/console propel:sql:insert --force
./Tests/Fixtures/App/app/console propel:build
- name: "Run PHPUnit Tests"
run: "vendor/bin/phpunit"