Skip to content

fix

fix #70

Workflow file for this run

# 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/checkout
- uses: actions/checkout@v4
# 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.3'
- name: Install
# Install project
run: make install
- name: Run linter
# Run Linter
run: make lint
- name: Run tests
run: make test-coverage
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
# NOTE: https://sonarcloud.io/project/information?id=hexlet-boilerplates_php-package
args: >
-Dsonar.projectKey=hexlet-boilerplates_php-package
-Dsonar.organization=hexlet-boilerplates
-Dsonar.sources=src/
-Dsonar.php.coverage.reportPaths=build/logs/clover.xml