-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 1.06 KB
/
php_unit.yaml
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
name: PHPUnit
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
ini-values: intl.default_locale=fr_CH
coverage: xdebug
extensions: imagick
- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run PHPUnit
run: vendor/bin/phpunit --display-skipped --no-progress --coverage-clover ./clover.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: 'laurentmuller/calculation'
disable_search: true
files: ./clover.xml