From 4214f7506957198a67d8528cddf2f2119de8959b Mon Sep 17 00:00:00 2001 From: Benoit Viguier Date: Tue, 30 Jun 2020 11:19:01 +0200 Subject: [PATCH 1/4] feat(CI): remove PrettyCI --- .prettyci.composer.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .prettyci.composer.json 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" - } -} From 10dafbe9831c9e2022db3a01d507b0306414104c Mon Sep 17 00:00:00 2001 From: Benoit Viguier Date: Tue, 30 Jun 2020 11:19:20 +0200 Subject: [PATCH 2/4] feat(CI): add GH action for code style --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f57424c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: php-cs-fixer +on: [push, pull_request] + +jobs: + php-cs-fixer: + name: php-cs-fixer + runs-on: ubuntu-latest + steps: + - name: Setup PHP + uses: shivammathur/setup-php@v1 + 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 \ No newline at end of file From 619cfc13492cf4ae17ae78cbb44ee8775179fb4e Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Sat, 24 Apr 2021 18:46:35 +0200 Subject: [PATCH 3/4] :construction_worker: update github CI --- .github/workflows/ci.yml | 46 +++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f57424c..62929c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + 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 From 5536ea75408235e0b435fb2caf2dcfce8c6462fd Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Sat, 24 Apr 2021 18:58:38 +0200 Subject: [PATCH 4/4] :heavy_minus_sign: remove travis CI --- .travis.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .travis.yml 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"