-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) · 963 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
39
40
41
42
43
44
45
46
47
48
---
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
php: ["7.3", "7.4", "8.0", "8.1"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Composer install
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php }}
- name: Run unit tests
uses: php-actions/[email protected]
with:
configuration: phpunit.xml
php_version: ${{ matrix.php }}
lint:
name: Check code style
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run linters
uses: docker://oskarstark/php-cs-fixer-ga
- name: Auto commit `php-cs-fixer` changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply php-cs-fixer changes