-
Notifications
You must be signed in to change notification settings - Fork 156
53 lines (44 loc) · 1.23 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: Tests
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php-version: ['8.2', '8.3']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, json, mbstring, openssl, soap, xdebug
tools: composer
- name: Install Dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Run PHPUnit
run: composer tests
- name: Upload PHPUnit result report
if: failure()
uses: actions/upload-artifact@v4
with:
name: tests-testdox-php_${{ matrix.php-version }}.txt
path: var/tests-testdox.txt
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: tests-coverage-php_${{ matrix.php-version }}.txt
path: var/tests-coverage.txt
- name: Display PHP version
run: php -v