-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 811 Bytes
/
php.yml
File metadata and controls
33 lines (27 loc) · 811 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
32
33
#.github/workflows/php.yml
name: Tests
on:
push: ~
pull_request: ~
jobs:
build:
runs-on: ${{ matrix.operating-system }}
name: PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
strategy:
matrix:
operating-system: [ ubuntu-latest, macos-latest ]
php: [ '8.3' ]
symfony: [ '6.4.*', '7.0.*' ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: flex
- name: Download dependencies (Symfony ${{ matrix.symfony }})
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v2
- name: Tests on ${{ matrix.operating-system }}
run: ./vendor/bin/phpunit