-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (39 loc) · 1 KB
/
phpunit-tests.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
35
36
37
38
39
40
41
42
43
44
45
46
name: phpunit-tests
on:
push:
pull_request:
schedule:
- cron: "0 9 * * 1"
jobs:
PHPUnit:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.3']
coverage-driver: [pcov]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: gmp
coverage: pcov
tools: composer:v2, infection
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
- name: Update composer
run: composer self-update
- name: Composer install
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install -n
- name: PHPUnit
run: vendor/bin/phpunit
env:
XDEBUG_MODE: coverage