-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (27 loc) · 853 Bytes
/
Copy pathtest.yml
File metadata and controls
31 lines (27 loc) · 853 Bytes
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: test
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
test:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4', '8.5']
dependency-versions: ['lowest', 'highest']
name: Test (php ${{ matrix.php-version }}, composer ${{ matrix.dependency-versions }})
steps:
- uses: actions/checkout@v7
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Setup Composer
uses: ramsey/composer-install@v4
with:
composer-options: "--no-scripts"
dependency-versions: ${{ matrix.dependency-versions }}
- name: Run phpunit
run: ./vendor/bin/phpunit