Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 10 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,21 @@ permissions:

jobs:
test:
name: test
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:11
env:
MARIADB_ROOT_PASSWORD: password
MARIADB_DATABASE: framework-tests
ports:
- 3306:3306
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=10s --health-timeout=5s --health-retries=15
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=10
memcached:
image: memcached:1.6
ports:
- 11211:11211
env:
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_USERNAME: root
DB_PASSWORD: password
DB_SCHEMA: framework-tests
REDIS_HOST: 127.0.0.1
MEMCACHED_HOST: 127.0.0.1
name: test / php ${{ matrix.php }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: intl, sodium, gd, mysqli, curl, fileinfo, json, dom, simplexml, mbstring, zip, redis, memcached, apcu
php-version: ${{ matrix.php }}
extensions: mbstring, curl, fileinfo, json, dom, simplexml
coverage: pcov
ini-values: apc.enable_cli=1, mysqli.allow_local_infile=1
- name: Validate composer.json
run: composer validate --no-check-publish
- name: Install dependencies
Expand All @@ -65,14 +40,13 @@ jobs:
lint:
name: lint
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: intl, sodium, gd, mysqli, curl, fileinfo, json, dom, simplexml, mbstring, zip
extensions: mbstring, curl, fileinfo, json, dom, simplexml
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress
Expand Down
Loading