-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.34 KB
/
php-ci.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
# Name of workflow
name: PHP CI
# Trigger the workflow on push or pull request
on:
- push
- pull_request
jobs:
build:
# The type of machine to run the job on
runs-on: ubuntu-latest
steps:
# Check-out repository under GitHub workspace
# https://github.com/actions/checkouthttps://github.com/actions/checkout
- uses: actions/checkout@v3
# Step's name
- name: Setup PHP
# Action gives to setup the PHP environment to test application
# https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
# Specify the PHP version
php-version: '8.0.1'
- name: Install
# Install project
run: make install
- name: Run linter
# Run Linter
run: make lint
- name: Run test & publish code coverage
uses: paambaati/codeclimate-action@v2.6.0
# Add Code Climate secret key
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make test-coverage
coverageLocations: ${{github.workplace}}/build/logs/clover.xml:clover
debug: true