Skip to content

Commit

Permalink
Added promise helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Jun 29, 2021
1 parent 0a100fb commit 2236246
Show file tree
Hide file tree
Showing 15 changed files with 491 additions and 320 deletions.
96 changes: 54 additions & 42 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,60 @@
name: Quality
on: push
jobs:
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cs-Fixer
run: |
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
chmod a+x php-cs-fixer
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
phpstan:
runs-on: ubuntu-latest
strategy:
matrix:
phpstan-level: [ 3, 5, 7, 8 ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
phpstan:
runs-on: ubuntu-latest
strategy:
matrix:
phpstan-level: [ 3, 5, 7, 8 ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0

- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
args: --level=${{ matrix.phpstan-level }}
- name: PHPStan
uses: php-actions/phpstan@v2
with:
path: src/
args: --level=${{ matrix.phpstan-level }}

phpspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
extensions: xdebug
- name: PHP Spec
run: bin/phpspec run spec
phpspec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
extensions: xdebug
- name: PHPSpec
run: bin/phpspec run spec

phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
with:
args: --prefer-dist
php_version: 8.0
extensions: xdebug
- name: PHPUnit
run: bin/phpunit tests
2 changes: 0 additions & 2 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

40 changes: 0 additions & 40 deletions .idea/php-test-framework.xml

This file was deleted.

143 changes: 0 additions & 143 deletions .idea/php.xml

This file was deleted.

68 changes: 0 additions & 68 deletions .idea/promise.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Loading

0 comments on commit 2236246

Please sign in to comment.