Skip to content
Merged
Show file tree
Hide file tree
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
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
- pull_request
- push

jobs:
tests:
name: "PHP ${{matrix.php}}"
runs-on: "ubuntu-24.04"
strategy:
fail-fast: false
matrix:
include:
- php: "7.4"
COMPOSER_FLAGS: "--prefer-stable --prefer-lowest"
- php: "8.0"
- php: "8.1"
- php: "8.2"
- php: "8.3"
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, log_errors_max_len=0
- name: "Update composer dependencies"
run: composer update -o --no-interaction --no-progress ${{ matrix.COMPOSER_FLAGS }}
- name: Tests
env:
PHP_CS_FIXER_IGNORE_ENV: ${{ matrix.PHP_CS_FIXER_IGNORE_ENV }}
run: vendor/bin/phpunit
sca:
name: Static Code Analysis
runs-on: 'ubuntu-24.04'
env:
php-version: '7.4'
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, log_errors_max_len=0
- name: "Update composer dependencies"
run: composer update -o --no-interaction --no-progress ${{ matrix.COMPOSER_FLAGS }}
- name: "composer-require-checker"
run: vendor/bin/composer-require-checker check composer.json
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.1.3 || ^8.0",
"php": "^7.4 || ^8.0",
"symfony/process": "^4.4 || ^5 || ^6 || ^7"
},
"require-dev": {
Expand Down