Skip to content

Commit 81758b3

Browse files
authored
Merge pull request #29 from fey/update-ci
Update ci
2 parents aa7245d + df833ab commit 81758b3

File tree

1 file changed

+8
-28
lines changed

1 file changed

+8
-28
lines changed

.github/workflows/main.yml

+8-28
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,23 @@
1-
# Name of workflow
21
name: PHP CI
32

4-
# Trigger the workflow on push or pull request
53
on:
64
- push
75
- pull_request
86

97
jobs:
108
build:
11-
12-
# The type of machine to run the job on
139
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php-versions: ['8.1', '8.2', '8.3']
1413

1514
steps:
16-
# Check-out repository under GitHub workspace
17-
# https://github.com/actions/checkout
1815
- uses: actions/checkout@v2
19-
# Step's name
2016
- name: Setup PHP
21-
# Action gives to setup the PHP environment to test application
22-
# https://github.com/shivammathur/setup-php
2317
uses: shivammathur/setup-php@v2
2418
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-
uses: paambaati/[email protected]
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

0 commit comments

Comments
 (0)