-
-
Notifications
You must be signed in to change notification settings - Fork 20
40 lines (34 loc) · 999 Bytes
/
php.yml
File metadata and controls
40 lines (34 loc) · 999 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
name: Test
on:
push:
branches:
- "*"
pull_request:
branches: [ 'master', 'main' ]
workflow_dispatch:
schedule:
- cron: '0 9 15 * *'
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
# https://github.com/shivammathur/setup-php?tab=readme-ov-file#cloud-osplatform-support
os: [ 'ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-22.04-arm', 'ubuntu-24.04-arm', 'windows-2022', 'windows-2025', 'macos-14', 'macos-15-intel', 'macos-15', 'macos-26' ]
php-version: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup PHP
uses: ./.github/actions/setup-php
with:
php-version: ${{ matrix.php-version }}
- name: Prepare environment
run: composer update
- name: Run testing
run: |
php -v
composer test