add lint workflow

This commit is contained in:
Andrew Dolgov 2023-03-25 07:54:14 +03:00
parent 563675de09
commit ca86a0e239
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: lint
on:
- push
- workflow_dispatch
defaults:
run:
shell: sh
jobs:
lint:
runs-on: alpine-3.16
steps:
- name: checkout source
uses: actions/checkout@v3
- name: phpunit
run: php81 ./vendor/bin/phpunit
- name: phpstan
run: php81 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G