diff options
author | Joas Schilling <coding@schilljs.com> | 2020-04-15 12:36:03 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-05-12 15:59:00 +0300 |
commit | 851f76ecd2be9302cf7938e287929f9296b398d0 (patch) | |
tree | b0a3f5c63fd5b7ad1bdd2b8a16d6ef43fd506a53 /.github | |
parent | 877166cf799bcd298539680043a187d402633c3f (diff) |
Update workflow with the server workflow
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cccd9d9f8..826ffddec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,28 +28,21 @@ jobs: - name: Lint run: "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" - php-cs: + php-cs-fixer: + name: php-cs check runs-on: ubuntu-latest - - strategy: - matrix: - php-versions: ['7.4'] - - name: php${{ matrix.php-versions }} CS steps: - - uses: actions/checkout@v2 - - - name: Set up php ${{ matrix.php-versions }} - uses: shivammathur/setup-php@v1 + - name: Checkout + uses: actions/checkout@master + - name: Set up php + uses: shivammathur/setup-php@master with: - php-version: ${{ matrix.php-versions }} + php-version: 7.4 coverage: none - - - name: Composer - run: composer install - - - name: Check CS - run: composer run cs:check + - name: Install dependencies + run: composer i + - name: Run coding standards check + run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) node: runs-on: ubuntu-latest |