Skip to content

CI: Separated file for CQT report (#6) #9

CI: Separated file for CQT report (#6)

CI: Separated file for CQT report (#6) #9

Workflow file for this run

name: Test
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
permissions:
contents: read
jobs:
syntax-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check PHP syntax errors
uses: overtrue/phplint@9.1.2
code-quality-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install PHP_CodeSniffer
run: |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --version
- uses: Novusvetus/action-php_codesniffer@1.2.17
with:
files: "**.php"
scan_all: true
phpcs_path: php phpcs.phar
standard: phpcs.xml
report: csv
report_file: code_quality.csv
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: code-quality-report
path: code_quality.csv
retention-days: 5