forked from pematon/mysql-session-handler
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (32 loc) · 876 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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: PHP Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.2"
- "8.3"
steps:
- uses: actions/checkout@v3
- name: OS info
run: cat /etc/os-release
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: PHP info
run: |
php -v
php -m
- name: Validate composer.json
run: composer validate --strict --no-interaction
- name: Install dependencies
run: composer update --no-progress --no-interaction
- name: Run tests
run: composer test
- name: Failed test output, if any
if: failure()
run: for i in $(find ./site/tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done