-
Notifications
You must be signed in to change notification settings - Fork 367
41 lines (35 loc) · 1017 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
name: PHP CI
on:
push:
paths:
- 'php/**'
- '.github/workflows/php**'
pull_request:
paths:
- 'php/**'
- '.github/workflows/php**'
schedule:
# weekly build every FRI
- cron: "0 6 * * 5"
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, windows-latest, macOS-latest ]
php-versions: [ '8.1', '8.2' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit #optional, setup tools globally
- name: Install Dependencies
working-directory: php
run: composer install --prefer-dist
- name: Run phpunit
working-directory: php
run: phpunit --bootstrap vendor/autoload.php tests --filter testNotFailing