File tree 1 file changed +8
-28
lines changed
1 file changed +8
-28
lines changed Original file line number Diff line number Diff line change 1
- # Name of workflow
2
1
name : PHP CI
3
2
4
- # Trigger the workflow on push or pull request
5
3
on :
6
4
- push
7
5
- pull_request
8
6
9
7
jobs :
10
8
build :
11
-
12
- # The type of machine to run the job on
13
9
runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ php-versions : ['8.1', '8.2', '8.3']
14
13
15
14
steps :
16
- # Check-out repository under GitHub workspace
17
- # https://github.com/actions/checkout
18
15
- uses : actions/checkout@v2
19
- # Step's name
20
16
- name : Setup PHP
21
- # Action gives to setup the PHP environment to test application
22
- # https://github.com/shivammathur/setup-php
23
17
uses : shivammathur/setup-php@v2
24
18
with :
25
- # Specify the PHP version
26
- php-version : ' 7.4'
27
- - name : Install
28
- # Install project
29
- run : make install
30
- - name : Run linter
31
- # Run Linter
32
- run : make lint
33
- # Publish code coverage on Code Climate
34
- # https://github.com/paambaati/codeclimate-action
35
- - name : Run test & publish code coverage
36
-
37
- # Add Code Climate secret key
38
- env :
39
- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
40
- with :
41
- coverageCommand : make test-coverage
42
- coverageLocations : ${{github.workplace}}/build/logs/clover.xml:clover
43
- debug : true
19
+ php-version : ${{ matrix.php-versions }}
20
+
21
+ - run : make install
22
+ - run : make lint
23
+ - run : make test
You can’t perform that action at this time.
0 commit comments