Qual Increase PHP Error reporting in travis check #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: [pull_request, push] | |
name: phan | |
jobs: | |
phan: | |
name: Run phan | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none # disable xdebug, pcov | |
tools: cs2pr,phan | |
- name: Run Phan analysis | |
run: | | |
phan --quick -k .phan/config.php -B .phan/baseline.txt --analyze-twice --minimum-target-php-version 7.0 --output-mode=checkstyle -o _phan.xml | |
- name: Add results to PR | |
if: ${{ always() }} | |
run: | | |
cs2pr _phan.xml | |
- name: Provide phan log as artifact | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: phan-srcrt | |
# path: ${{ github.workspace }}/phan.log | |
path: ${{ github.workspace }}/_phan.xml | |
retention-days: 2 |