diff options
author | Joas Schilling <coding@schilljs.com> | 2022-01-21 16:00:11 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-01-21 16:00:11 +0100 |
commit | edb00a896b991581250d5faec440bea6fb6e51a6 (patch) | |
tree | 8d3faa97f832316e2e02baecb5c9e0989d130ee2 /.github/workflows/lint-php-cs.yml | |
parent | 764805f01787a19a5f19ac0f6c227f40fe449b68 (diff) |
Move to unified linting
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github/workflows/lint-php-cs.yml')
-rw-r--r-- | .github/workflows/lint-php-cs.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml new file mode 100644 index 000000000..9aad51409 --- /dev/null +++ b/.github/workflows/lint-php-cs.yml @@ -0,0 +1,35 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization + +name: Lint + +on: + pull_request: + push: + branches: + - master + - stable* + +jobs: + lint: + runs-on: ubuntu-latest + + name: php-cs + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up php ${{ matrix.php-versions }} + uses: shivammathur/setup-php@v2 + with: + php-version: "7.4" + coverage: none + + - name: Install dependencies + run: composer i + + - name: Lint + run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 ) |