Create php.yml

This commit is contained in:
Shyim
2022-10-23 02:25:35 +02:00
committed by GitHub
parent 8c66da6ece
commit 216fb35117
+35
View File
@@ -0,0 +1,35 @@
name: PHP
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: redis
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run integration
- name: Run cs
run: composer run cs
- name: Run phpstan
run: composer run phpstan