-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (62 loc) · 1.6 KB
/
tests.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: tests
on:
push:
branches:
- main
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- name: macOS
os: macos-latest
php: '8.3'
- name: PHP8.1
os: ubuntu-latest
php: '8.1'
- name: PHP8.2
os: ubuntu-latest
php: '8.2'
- name: PHP8.3
os: ubuntu-latest
php: '8.3'
- name: Windows
os: windows-latest
php: '8.3'
steps:
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
# PHP Extras
coverage: none
tools: composer, phpunit:10.5, phpstan
#ini-values: "memory_limit=512M"
extensions: ffi
- name: Checkout codes
uses: "actions/checkout@v4"
#- name: Composer
# uses: php-actions/composer@v6
# with:
# php_version: ${{ matrix.php }}
# php_extensions: ffi
- name: Composer
run: composer update
#- name: PHP Static Analysys
# uses: php-actions/phpstan@v3
# with:
# php_version: ${{ matrix.php }}
# path: src/
- name: PHP Static Analysys
run: phpstan
#- name: PHPUnit Tests
# uses: php-actions/phpunit@v3
# with:
# configuration: tests/phpunit.xml
# version: 10.5
# php_version: ${{ matrix.php }}
# php_extensions: ffi
- name: PHPUnit Tests
run: phpunit -c tests