Skip to content

Instantly share code, notes, and snippets.

@ignaciojonas
Last active March 18, 2021 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignaciojonas/1e56c5008dffa286d0adcfb418cb37b9 to your computer and use it in GitHub Desktop.
Save ignaciojonas/1e56c5008dffa286d0adcfb418cb37b9 to your computer and use it in GitHub Desktop.
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