-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (25 loc) · 898 Bytes
/
phpunit.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
name: PHPUnit
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
phpunit:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ["8.2", "8.3"]
name: PHPUnit with PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.PHP_EXTENSIONS }}
- name: Install Composer packages
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run PHPUnit
run: $GITHUB_WORKSPACE/vendor/bin/phpunit