-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (35 loc) · 1.08 KB
/
phpunit.yml
File metadata and controls
44 lines (35 loc) · 1.08 KB
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
name: "PHPUnit - CI"
on:
push:
branches:
- "**"
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
extensions: xdebug
ini-values: memory_limit=512M
coverage: xdebug
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress --no-suggest
- name: Check Composer platform requirements
run: composer check-platform-reqs
- name: Show PHP version
run: php -v
- name: Run PHPUnit tests with coverage
run: ./vendor/bin/phpunit --configuration phpunit.xml --coverage-clover=coverage.xml
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml