-
Notifications
You must be signed in to change notification settings - Fork 38
47 lines (38 loc) · 1.23 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
build-php:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
strategy:
max-parallel: 6
fail-fast: false
matrix:
php-versions:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP version and composer
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2
- name: Environment Check
run: |
php --version
composer --version
- name: Install composer dependencies
run: composer update
- name: Info
run: composer info
- name: Lint
run: composer test:php:lint
- name: CGL
if: ${{ matrix.php-versions <= '8.3' }}
run: vendor/bin/php-cs-fixer fix --dry-run --verbose --show-progress=none
- name: Unit Tests
run: composer test:php:unit