Skip to content

Prevent division by zero when the total product tax included in the p… #394

Prevent division by zero when the total product tax included in the p…

Prevent division by zero when the total product tax included in the p… #394

Workflow file for this run

name: Phan
on: [push]
jobs:
phan:
name: Phan Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
############################################################################
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
tools: composer:v2, prestissimo, pecl
coverage: none
extensions: ast, bcmath, gd, pdo_mysql, zip, soap
#https://github.com/actions/cache/blob/master/examples.md#php---composer
- name: Cache composer packages
id: composer-cache
run: |
composer config cache-files-dir
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Update project dependencies
run: |
composer install --prefer-dist --no-progress --no-suggest
composer dump-autoload --optimize
############################################################################
- name: Run Phan analysis
id: phan-analysis
run: ./libs/bin/phan --config-file=phan.php --output-mode=checkstyle --output=chkphan.xml
continue-on-error: true
- name: Archive static analysis results
uses: actions/upload-artifact@v1
with:
name: phan-analysis-results
path: chkphan.xml
- name: Report annotations
id: report-annotations
run: ./libs/bin/cs2pr chkphan.xml