-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 848 Bytes
/
ci.yml
File metadata and controls
35 lines (33 loc) · 848 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
name: CI
on:
push:
pull_request:
branches:
- master
types:
- opened
- synchronize
jobs:
build-test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ 'ubuntu-latest' ]
php-versions: [ '8.2', '8.3', '8.4' ]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: pcov
tools: phpstan, phpunit
- name: Install dependencies
run: composer install --no-interaction --optimize-autoloader
- name: PHP Lint
run: find src tests -name "*.php" -exec php -l {} \;
- name: PHPStan Static Analysis
run: phpstan
- name: PHPUnit
run: phpunit