-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1023 Bytes
/
php.yml
File metadata and controls
40 lines (33 loc) · 1023 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
34
35
36
37
38
39
40
#.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.2' ]
symfony: [ '6.3.*', '6.4.*' ]
steps:
- uses: actions/checkout@v4
- name: Install systemd
if: matrix.operating-system == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y systemd
sudo systemctl daemon-reexec
- 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