-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.15 KB
/
test.yml
File metadata and controls
42 lines (35 loc) · 1.15 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
name: test
on:
push:
branches:
- 'gh-pages'
pull_request:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: PHPUnit ${{ matrix.phpunit-version }} on PHP ${{ matrix.php-version }} (Ubuntu 24.04)
runs-on: ubuntu-24.04
strategy:
matrix:
php-version:
- '8.4'
phpunit-version:
- '12.0'
steps:
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Require PHPUnit ${{ matrix.phpunit-version }}
run: composer require --dev phpunit/phpunit:^${{ matrix.phpunit-version }} --with-all-dependencies
- name: Install Dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run PHPUnit ${{ matrix.phpunit-version }}
run: vendor/bin/phpunit --configuration=phpunit.xml.dist --coverage-xml=build/coverage-xml