-
Notifications
You must be signed in to change notification settings - Fork 31
29 lines (27 loc) · 723 Bytes
/
Copy pathci.yml
File metadata and controls
29 lines (27 loc) · 723 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: Tests (PHP ${{ matrix.php }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.5']
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ffi, json, hash, fileinfo, pdo, pdo_sqlite, zip, sodium
coverage: none
- run: composer install --no-progress --prefer-dist
- run: composer cs-check
- run: composer stan
- run: composer psalm
- run: composer test