Skip to content

Commit

Permalink
GitHub Actions (rip from pmmp/ExamplePlugin@bfc3599)
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Oct 10, 2021
1 parent 674cada commit d7606a8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Workflow copied from pmmp/ExamplePlugin@bfc359934c88c0b105aeb1b4d21c51076443d2a9

name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: PHPStan analysis
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- "8.0"

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}

- name: Restore Composer package cache
id: composer-cache
uses: actions/cache@v2
with:
path: "~/.cache/composer"
key: "php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "php-${{ matrix.php }}-composer-"

- name: Install PHPStan Composer dependencies
run: COMPOSER=phpstan-composer.json composer install --prefer-dist --no-interaction --ignore-platform-reqs

- name: Run PHPStan
run: vendor/bin/phpstan analyze

0 comments on commit d7606a8

Please sign in to comment.