forked from themsaid/ibis
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.38 KB
/
quality-check.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
48
49
50
51
52
53
54
name: Quality Check
on: [push, pull_request]
jobs:
php-checks:
runs-on: ${{ matrix.operating-system}}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: [ '8.3' ]
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd
- name: Checkout Code
uses: actions/checkout@v4
- name: Composer Install
run: "composer update"
- name: Execute PHP CS Fixer review
run: composer run csfix-review
- name: Execute Rector dry run
run: composer run refactor-review
tests:
runs-on: ${{ matrix.operating-system}}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest']
php-versions: [ '8.3', '8.2','8.1' ]
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}}
steps:
# This is required as this package does not support PHP 8 (yet)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd
- name: Checkout Code
uses: actions/checkout@v4
- name: Composer Install
run: "composer update"
- name: Execute Tests
run: composer run test