Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created February 16, 2022 12:56
Show Gist options
  • Save DanyF-github/2a53ae65aeaaeb6924648944ae6dc9de to your computer and use it in GitHub Desktop.
Save DanyF-github/2a53ae65aeaaeb6924648944ae6dc9de to your computer and use it in GitHub Desktop.
---
name: build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
name: Build example
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
extensions: json, mbstring
coverage: pcov
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run PHPStan
run: vendor/bin/phpstan analyse .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment