Files
language-data/.github/workflows/php.yml
Abijeet aa4cef355c Drop support for PHP 7.2, and update dependencies
In CI add tests for PHP 8.2
2023-01-21 11:15:53 +02:00

28 lines
567 B
YAML

name: PHP build
on:
[pull_request, push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
php: [7.4, 8.0, 8.1, 8.2]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --ansi
- name: Running phpcs
run: composer run-script cs
- name: Run tests
run: php ./vendor/bin/phpunit