-
-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (29 loc) · 844 Bytes
/
php.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
name: PHP Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ 'ubuntu-latest' ]
php-versions: [ '8.1', '8.3', '8.4']
phpunit-versions: [ 'latest' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, curl
tools: phpunit:${{ matrix.phpunit-versions }}
- name: Install dependencies
run: |
composer install --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit