-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.04 KB
/
ci.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: CI
on: [ push ]
jobs:
test:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.4', '8.0', '8.1' ]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
ini-values: post_max_size=256M, log_errors=1
coverage: pcov
tools: pecl
- name: Install composer dependencies
run: composer install --prefer-dist
- name: Run PHPUnit
env:
EXT_IP_KEY: ${{ secrets.EXT_IP_KEY }}
run: php vendor/bin/phpunit ./tests --coverage-text --whitelist ./src --coverage-clover coverage.xml
- name: Run PHPStan
run: php vendor/bin/phpstan analyse -c phpstan.neon
- name: Upload CodeCov report
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash)