Skip to content

Add phan flow

Add phan flow #39

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 .phan/config.php -B .phan/baseline.txt --analyze-twice --minimum-target-php-version 7.1 | 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