diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..62929c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: Code Quality + +on: + push: + branches: + - master + pull_request: + +jobs: + code-quality: + name: Code Quality + runs-on: ubuntu-latest + + strategy: + matrix: + php: [ '7.2', '7.3', '7.4' ] + + steps: + - name: 'Init repository' + uses: actions/checkout@v2 + + - name: 'Setup PHP' + uses: shivammathur/setup-php@v2 + with: + 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 diff --git a/.prettyci.composer.json b/.prettyci.composer.json deleted file mode 100644 index da31035..0000000 --- a/.prettyci.composer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "require-dev": { - "m6web/php-cs-fixer-config": "^1.0" - } -} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 17cf639..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: php -php: - - '7.1' - - '7.2' - - '7.3' - -before_script: - - phpenv config-rm xdebug.ini - - composer install - -env: - - TASK=tests-unit - - TASK=tests-examples - - TASK=static-analysis - -script: "composer $TASK"