@@ -4,92 +4,15 @@ on: [push]
4
4
5
5
jobs :
6
6
blackbox :
7
- runs-on : ${{ matrix.os }}
8
- strategy :
9
- matrix :
10
- os : [ubuntu-latest, macOS-latest]
11
- php-version : ['8.2', '8.3']
12
- dependency-versions : ['lowest', 'highest']
13
- name : ' BlackBox'
14
- steps :
15
- - name : Checkout
16
- uses : actions/checkout@v4
17
- - name : Setup PHP
18
- uses : shivammathur/setup-php@v2
19
- with :
20
- php-version : ${{ matrix.php-version }}
21
- extensions : mbstring, intl
22
- coverage : none
23
- - name : Composer
24
- uses : " ramsey/composer-install@v3"
25
- with :
26
- dependency-versions : ${{ matrix.dependencies }}
27
- - name : BlackBox
28
- run : php blackbox.php
29
- env :
30
- BLACKBOX_SET_SIZE : 20
7
+ uses : innmind/github-workflows/.github/workflows/black-box-matrix.yml@main
8
+ with :
9
+ scenarii : 20
31
10
coverage :
32
- runs-on : ${{ matrix.os }}
33
- strategy :
34
- matrix :
35
- os : [ubuntu-latest, macOS-latest]
36
- php-version : ['8.2', '8.3']
37
- dependency-versions : ['lowest', 'highest']
38
- name : ' Coverage'
39
- steps :
40
- - name : Checkout
41
- uses : actions/checkout@v4
42
- - name : Setup PHP
43
- uses : shivammathur/setup-php@v2
44
- with :
45
- php-version : ${{ matrix.php-version }}
46
- extensions : mbstring, intl
47
- coverage : xdebug
48
- - name : Composer
49
- uses : " ramsey/composer-install@v3"
50
- with :
51
- dependency-versions : ${{ matrix.dependencies }}
52
- - name : BlackBox
53
- run : php blackbox.php
54
- env :
55
- ENABLE_COVERAGE : ' true'
56
- BLACKBOX_SET_SIZE : 1
57
- - uses : codecov/codecov-action@v4
58
- with :
59
- token : ${{ secrets.CODECOV_TOKEN }}
11
+ uses : innmind/github-workflows/.github/workflows/coverage-matrix.yml@main
12
+ secrets : inherit
60
13
psalm :
61
- runs-on : ubuntu-latest
62
- strategy :
63
- matrix :
64
- php-version : ['8.2', '8.3']
65
- name : ' Psalm'
66
- steps :
67
- - name : Checkout
68
- uses : actions/checkout@v4
69
- - name : Setup PHP
70
- uses : shivammathur/setup-php@v2
71
- with :
72
- php-version : ${{ matrix.php-version }}
73
- extensions : mbstring, intl
74
- - name : Composer
75
- uses : " ramsey/composer-install@v3"
76
- - name : Psalm
77
- run : vendor/bin/psalm --shepherd
14
+ uses : innmind/github-workflows/.github/workflows/psalm-matrix.yml@main
78
15
cs :
79
- runs-on : ubuntu-latest
80
- strategy :
81
- matrix :
82
- php-version : ['8.2']
83
- name : ' CS'
84
- steps :
85
- - name : Checkout
86
- uses : actions/checkout@v4
87
- - name : Setup PHP
88
- uses : shivammathur/setup-php@v2
89
- with :
90
- php-version : ${{ matrix.php-version }}
91
- extensions : mbstring, intl
92
- - name : Composer
93
- uses : " ramsey/composer-install@v3"
94
- - name : CS
95
- run : vendor/bin/php-cs-fixer fix --diff --dry-run
16
+ uses : innmind/github-workflows/.github/workflows/cs.yml@main
17
+ with :
18
+ php-version : ' 8.2'
0 commit comments