Skip to content

Commit

Permalink
Replace StyleCI with PHP_CodeSniffer (run via GitHub Actions)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekodex committed Sep 24, 2020
1 parent 17ff574 commit ff4a059
Show file tree
Hide file tree
Showing 5 changed files with 390 additions and 341 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PHP_CodeSniffer check

on: [push, pull_request]

jobs:
phpcs:
name: PHP_CodeSniffer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer config -g github-oauth.github.com 98cbc568911ef1e060a3a31623f2c80c1786d5ff && composer install --dev --prefer-dist --no-progress --no-suggest
env:
APP_ENV: testing
- name: PHP_CodeSniffer check
uses: chekalsky/phpcs-action@v1
with:
phpcs_bin_path: './vendor/bin/phpcs'
44 changes: 0 additions & 44 deletions .styleci.yml

This file was deleted.

3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@
},
"require-dev": {
"beyondcode/laravel-query-detector": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"filp/whoops": "*",
"fzaninotto/faker": "*",
"laravel/dusk": "*",
"mockery/mockery": "*",
"phpunit/phpunit": "*",
"slevomat/coding-standard": "^6.4",
"squizlabs/php_codesniffer": "^3.5",
"symfony/css-selector": "*",
"symfony/dom-crawler": "*"
},
Expand Down
Loading

0 comments on commit ff4a059

Please sign in to comment.