Skip to content

Instantly share code, notes, and snippets.

@ignaciojonas

ignaciojonas/static.yml

Last active Mar 18, 2021
Embed
What would you like to do?
Configure Phan in Github Actions
name: Static Code Analysis
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
code-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Run Phan
run: vendor/bin/phan --no-progress-bar --allow-polyfill-parser --output-mode checkstyle | vendor/bin/cs2pr --graceful-warnings --colorize | true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment