-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 996 Bytes
/
ci.yaml
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
name: CI
on: [ push, pull_request ]
jobs:
ci:
name: "CI"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
php-version: [ 8.3 ]
steps:
# --------- Setup steps ---------
- name: "Checkout"
uses: actions/checkout@v3
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pcov, xdebug
- name: "Install dependencies"
uses: ramsey/composer-install@v2
# --------- Run steps ---------
- name: "Unit Tests"
run: "composer test"
- name: "Coding Style"
run: "composer cs-check"
if: matrix.operating-system == 'ubuntu-latest'
- name: "Static code analysis"
run: "composer psalm"
if: matrix.operating-system == 'ubuntu-latest'