Skip to content

Merge pull request #1 from dealnews/next #12

Merge pull request #1 from dealnews/next

Merge pull request #1 from dealnews/next #12

Workflow file for this run

name: Testing DealNews\DataMapper
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.0'
phpunit-versions: 9
# Service containers to run with `container-job`
services:
# Label used to access the service container
memcached:
# Docker Hub image
image: memcached:latest
ports:
- 11211:11211
# Label used to access the service container
redis:
# Docker Hub image
image: redis:7.2
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Composer Install
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-versions }}
- name: PHPUnit tests
uses: php-actions/phpunit@v3
with:
php_extensions: "pcov yaml memcached"
version: "9.6"
php_version: ${{ matrix.php-versions }}
group: unit
# - name: Run Phan
# uses: k1LoW/phan-action@v0