Skip to content

Add phan flow

Add phan flow #30

Workflow file for this run

---
on: [pull_request, push]
name: phan
jobs:
phan:
name: Run phan
runs-on: ubuntu-latest
container:
image: phanphp/phan:latest
steps:
- name: Link paths
shell: sh
run: |
ln -s $GITHUB_WORKSPACE /mnt/src
apk add git
- name: Checkout
uses: actions/checkout@v4
- name: Run Phan
run: |
cd /mnt/src
set -o pipefail
/opt/phan/phan --quick -k /mnt/src/.github/workflows/phan_config.php -B /mnt/src/.github/workflows/phan_baseline.txt --analyze-twice --minimum-target-php-version 5.6 | tee phan.log
- name: Provide phan log as artifact
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: phan-srcrt
path: ${{ github.workspace }}/phan.log
retention-days: 5