forked from domnikl/statsd-php
-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (28 loc) · 969 Bytes
/
php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build statsd-php
on: [push, pull_request]
jobs:
build:
name: statsd-php (PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }})
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.3', '7.4', '8.0']
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v1 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
coverage: xdebug #optional
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction
- name: phpcs
run: vendor/bin/php-cs-fixer fix --diff --dry-run -v
- name: psalm
run: vendor/bin/psalm --show-info=false
- name: phpunit
run: vendor/bin/phpunit