-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.48 KB
/
push.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Push
on:
- pull_request
- push
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.url || github.run_id }}
cancel-in-progress: true
jobs:
Linux-64:
name: Tests on Linux 64-bit
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
php-version:
- '8.2'
- '8.3'
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: bcmath
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
tools: none
- name: composer install
run: composer install -n --prefer-dist
- name: Run tests
if: matrix.php-version == '8.2'
run: |
./vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--testsuite=unit
- name: Run tests with coverage
if: matrix.php-version == '8.3'
run: |
XDEBUG_MODE=coverage ./vendor/bin/phpunit \
--configuration phpunit.xml.dist \
--testsuite=unit \
--coverage-clover ./coverage.xml
- uses: codecov/codecov-action@v5
if: matrix.php-version == '8.3'
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true