Skip to content

Merge tag 'v4.11.9' into develop #280

Merge tag 'v4.11.9' into develop

Merge tag 'v4.11.9' into develop #280

Workflow file for this run

name: "Test"
on:
pull_request: ~
push:
branches:
- develop
workflow_dispatch: ~
jobs:
run-tests:
name: Run tests
env:
DATABASE_URL: mysql://root:root@127.0.0.1:32574/ddd_sp_test?serverVersion=5
runs-on: "ubuntu-latest"
#container: ubuntu
services:
ddd-starter-pack-db:
image: mariadb:10.3.22
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ddd_sp_test
ports:
- 32574:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Verify MySQL connection from container
run: mysql --host 127.0.0.1 --port 32574 -uroot -proot -e "SHOW DATABASES"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Checkout code
uses: "actions/checkout@v2"
- name: Install dependencies
run: composer install
- name: Create Schema
run: ./tools/bin/project/project doctrine-schema-create
- name: "Run unit tests (PHPUnit)"
env:
XDEBUG_MODE: coverage
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
AWS_SQS_QUEUE_NAME: ${{ secrets.AWS_SQS_QUEUE_NAME }}
AWS_SNS_TOPIC_ARN: ${{ secrets.AWS_SNS_TOPIC_ARN }}
run: ./tools/bin/project/project coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./.coverage/coverage-clover.xml