All Projects → OskarStark → phpstan-ga

OskarStark / phpstan-ga

Licence: other
GithubAction for PHPStan

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to phpstan-ga

php-skeleton
A skeleton to start new high-quality PHP projects without worrying about bootstrapping everything from scratch.
Stars: ✭ 23 (-72.94%)
Mutual labels:  phpstan, github-actions
noise-php
A starter-kit for your PHP project.
Stars: ✭ 52 (-38.82%)
Mutual labels:  phpstan, github-actions
upload-rust-binary-action
GitHub Action for building and uploading Rust binary to GitHub Releases.
Stars: ✭ 47 (-44.71%)
Mutual labels:  github-actions
mojito-admin-starter
此项目主要为了演示如何自动化 Fullstack project 的 Infrastructure。
Stars: ✭ 17 (-80%)
Mutual labels:  github-actions
github-action-scp
⬆️ Copy a folder to a remote server using SSH
Stars: ✭ 123 (+44.71%)
Mutual labels:  github-actions
generate-og-image
Generate open graph images with Github Action from Markdown files
Stars: ✭ 32 (-62.35%)
Mutual labels:  github-actions
mylib
Шаблон кросплатформенного CMake-проекта для языка C++ 🇬🇧 Modern CMake crossplatform project template for C++
Stars: ✭ 49 (-42.35%)
Mutual labels:  github-actions
awscredswrap
awscredswrap uses temporary credentials for the specified iam role to set a shell environment variable or execute a command.
Stars: ✭ 15 (-82.35%)
Mutual labels:  github-actions
gitactionboard
GitactionBoard - Ultimate Dashboard for GithubActions.
Stars: ✭ 30 (-64.71%)
Mutual labels:  github-actions
node-js-action-template
Template for new GitHub Actions running NodeJS
Stars: ✭ 33 (-61.18%)
Mutual labels:  github-actions
flatpak-github-actions
Build your Flatpak application using Github Actions
Stars: ✭ 73 (-14.12%)
Mutual labels:  github-actions
riak-haskell-client
A fast Haskell client library for the Riak decentralized data store
Stars: ✭ 48 (-43.53%)
Mutual labels:  github-actions
woocommerce-stubs
WooCommerce function and class declaration stubs for static analysis.
Stars: ✭ 49 (-42.35%)
Mutual labels:  phpstan
action-eslint-fix
GitHub Action to run `eslint` with `--fix` option and commit fixes
Stars: ✭ 20 (-76.47%)
Mutual labels:  github-actions
creatly-backend
🚀 Creatly backend app
Stars: ✭ 71 (-16.47%)
Mutual labels:  github-actions
ssh-action
🖥 github ssh action
Stars: ✭ 122 (+43.53%)
Mutual labels:  github-actions
webring
“วงแหวนเว็บ” แห่งนี้สร้างขึ้นเพื่อส่งเสริมให้ศิลปิน นักออกแบบ และนักพัฒนาชาวไทย สร้างเว็บไซต์ของตัวเองและแบ่งปันการเข้าชมซึ่งกันและกัน
Stars: ✭ 125 (+47.06%)
Mutual labels:  github-actions
actions
A Collection of GitHub Actions
Stars: ✭ 91 (+7.06%)
Mutual labels:  github-actions
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+1.18%)
Mutual labels:  github-actions
start-here
You should open this repo first
Stars: ✭ 86 (+1.18%)
Mutual labels:  github-actions

GithubAction for PHPStan

Usage

You can use it as a Github Action like this:

# .github/workflows/test.yml 

on:
  push:
    branches:
      - master
  pull_request:

name: Test

jobs:
  phpstan:
    name: PHPStan

    runs-on: ubuntu-latest

    steps:
    - name: "Checkout"
      uses: actions/checkout@v2

    - name: PHPStan
      uses: docker://oskarstark/phpstan-ga
      with:
        args: analyse src/

to use a specific level:

      uses: docker://oskarstark/phpstan-ga
      with:
-        args: analyse src/
+        args: analyse src/ --level=5

to install dev dependencies:

      uses: docker://oskarstark/phpstan-ga
+     env:
+       REQUIRE_DEV: true
      with:
        args: analyse src/

to skip checking the platform requirements:

      uses: docker://oskarstark/phpstan-ga
+     env:
+        CHECK_PLATFORM_REQUIREMENTS: false
      with:
        args: analyse src/

to use a phpstan.neon.dist configuration file, just drop the phpstan.neon.dist in your repository root and it will be taken into account.

You can copy/paste the .github folder (under examples/) to your project and thats all!

Docker

A Docker-Image is built automatically and located here: https://hub.docker.com/r/oskarstark/phpstan-ga

You can run it in any given directory like this:

docker run --rm -it -w=/app -v ${PWD}:/app oskarstark/phpstan-ga:latest analyse src/ --level=5

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].