Files
language-data/.github/workflows/php.yml
Niklas Laxström 3d3f06592b Fix PHP builds (#134)
Pin image to specific version so that we don't get surprise failures
down the line.

Use common action to configure the default PHP version (the matrix
versions only affect test running).

Update PHP versions to supported versions in this image.
2020-12-21 20:28:18 +05:30

28 lines
560 B
YAML

name: PHP build
on:
[pull_request, push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
php: [7.4]
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