Skip to content

Commit

Permalink
👷 update github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
matyo91 committed Apr 24, 2021
1 parent 10dafbe commit 619cfc1
Showing 1 changed file with 34 additions and 12 deletions.
46 changes: 34 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
name: php-cs-fixer
on: [push, pull_request]
name: Code Quality

on:
push:
branches:
- master
pull_request:

jobs:
php-cs-fixer:
name: php-cs-fixer
code-quality:
name: Code Quality
runs-on: ubuntu-latest

strategy:
matrix:
php: [ '7.2', '7.3', '7.4' ]

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v1
- name: 'Init repository'
uses: actions/checkout@v2

- name: 'Setup PHP'
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
tools: php-cs-fixer
- uses: actions/checkout@master
- run: composer install --prefer-dist
- run: composer code-style-check
php-version: ${{ matrix.php }}
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv, swoole
tools: composer

- name: "Install dependencies"
run: composer install

- name: 'Tests unit'
run: composer tests-unit

- name: 'Tests examples'
run: composer tests-examples

- name: 'Static analysis'
run: composer static-analysis

0 comments on commit 619cfc1

Please sign in to comment.